Mobile Development 17 min read

Beike Cold Start Optimization

This article details the optimization of cold startup times in Android applications using ASM and method tracing techniques to improve performance and user experience.

Beike Product & Technology
Beike Product & Technology
Beike Product & Technology
Beike Cold Start Optimization

本文介绍了在Android应用中优化冷启动时间的方法,采用ASM插桩和方法追踪技术,旨在提升应用性能和用户体验。主要内容包括:

1. 方法调用信息收集:通过ASM框架在方法前后插入记录代码,收集方法调用顺序和耗时信息。

2. 模拟方法调用栈:根据收集的顺序反向还原调用链路,关联方法开始和结束。

3. 自定义方法统计工具:结合ASM插桩和模拟栈,实现高效准确的方法耗时统计。

4. 方法调用拦截器:支持过滤特定方法,仅收集关键路径的耗时信息。

5. 可视化展示:提供线程耗时统计、方法耗时统计和调用栈展示页面,帮助开发者快速定位性能瓶颈。

Performance OptimizationandroidCold StartASMtool developmentMethod TracingThread Analysis
Beike Product & Technology
Written by

Beike Product & Technology

As Beike's official product and technology account, we are committed to building a platform for sharing Beike's product and technology insights, targeting internet/O2O developers and product professionals. We share high-quality original articles, tech salon events, and recruitment information weekly. Welcome to follow us.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.