Tokopedia Sep 14, 2021

A Saga of Improvement in Android App Performance (Part 3)

Article Summary

Tokopedia built an internal tool that automatically finds Android performance bottlenecks. No more manual trace analysis or guessing which methods are slowing you down.

In Part 3 of their performance series, Tokopedia's Android team reveals how they automated performance profiling at scale. Traditional tools like systrace and Android Studio Profiler require too much manual work to be practical for continuous monitoring.

Key Takeaways

Critical Insight

Tokopedia automated Android performance profiling with a custom tool that identifies bottlenecks daily, eliminating manual trace analysis and speeding up regression detection.

The article includes actual screenshots of their dashboard and Slack notifications, plus the complete technical pipeline they built.

About This Article

Problem

Tokopedia's developers found it hard to spot performance regressions quickly. Android's standard profiling tools like systrace and Android Studio Profiler required a lot of manual work and time spent analyzing traces to find where things were slowing down.

Solution

Vishal Gupta's team built Sherlock to automatically flag methods that exceed 32ms thresholds and create flamegraphs. The tool runs through a Jenkins pipeline that connects Firebase Test Lab, aflame conversion, and MySQL data parsing.

Impact

Sherlock runs daily on release branches and sends performance summaries to Slack automatically. Developers can now spot regressions and review performance history without spending time manually investigating traces.

Recent from Tokopedia

Related Articles