A Saga of Improvement in Android App Performance — Part 1

Vishal Gupta
Apr 24 · 5 min read
Image for post
Image for post

Why performance is Important?

Introduction

Improvement Stages

Image for post
Image for post
Improvement process cycle at Tokopedia

Monitoring

@Override
protected void onCreate(Bundle savedInstanceState) {
startHomePerformanceMonitoring();
super.onCreate(savedInstanceState); doSomeInit();
}
private void setOnRecyclerViewLayoutReady(boolean isCache) {
homeRecyclerView.getViewTreeObserver()
.addOnGlobalLayoutListener(new
ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
//At this point the layout is complete and the
//dimensions of recyclerView and any child views are known.
if (homePerformanceMonitoringListener != null) {
homePerformanceMonitoringListener.stopHomePerformanceMonitoring(isCache);
}
}
});
}

How we build performance monitoring Dashboard?

FPI Big Query Example
App Start & PLT Query Example
Image for post
Image for post
Sample Line Graph of App Start created using Data Studio. Purple line depicts the target and black line depicts the app start metric per app version

Conclusion

References

Tokopedia Engineering

Story from people who build Tokopedia

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store