Drink chicken soup
The best time to plant a tree was ten years ago, the next best time is now.
Summary figure
Android development is like building a car. Performance optimization determines its luxury, comfort, experience, speed…
Why tidy performance optimization?
When dealing with performance tuning issues, there are always documents to refer to. Benefit a lot from good development ecology, hope oneself also can make a contribution.
What changes would I want to make?
- Use the latest version (Gradle, API, tools, etc.). Official recommendation, must be a classic, embrace the new version. If you are familiar with the old version, then using the new version, you can understand why the official change? What are the advantages? If you’re not familiar with the old version, just hop on the train and enjoy the latest scenery.
- Hands-on: Use code practice to complement the presentation. Each blog post will provide the corresponding minimalist code for everyone to practice, understand, master, and draw inferences. Performance optimization is very important to master the tool. Once you are familiar with it, it is fast, stable and accurate.
- Luxuriant: as far as possible to optimize the performance of all points in the summary. Encountering problems -> solving problems is normal, but encountering problems -> solving problems -> system improvement is the most likely to complete the performance optimization system graph. Through systematic improvement, problems can be assessed from a more diversified perspective with ease.
- Both young and old: as far as possible to tell a good blog story, more easy to understand some, easy to digest and absorb.
- Learning is like rowing upstream; not to advance is to drop back. Embrace change and be constantly updated. Stay true to your original aspiration and advance with The Times. I will update it continuously in three dimensions: Tools -> Basics -> In-depth.
Use the code
SamplePop code download
Performance Tuning – Tools (Official Tools)
(1) Cpu Profiler
(2) Memory Profiler
(3) Network Profiler
(4) Energy Profiler
(5) Generation of Systrace file in the previous part
(5) Analysis of Systrace files in the next part
(VI) ADM(deprecated)
(7) Perfetto file generation
(7) Perfetto file analysis
(7) Perfetto is introduced in detail in the next chapter
8. Use Lint in the previous section
Lint Custom Lint
(9) APK analyzer
Proguard/R8
Layout Inspector
(12) Gpu Overdraw & Gpu Rending
(13) StrictMode
Unfinished… To be continued…
Performance Tuning – Tools (Third-party Tools)
Unfinished… To be continued…
Performance Tuning – Tools (Command Line Tools)
Unfinished… To be continued…
Performance Tuning – Performance Summary
Unfinished… To be continued…
…
Xiaobian blog series
The Android technology stack
At this moment, I would like to recite a poem about the vastness of the Android system, like the stars of the sea… Better to ride the wind and waves together than to sail alone… Cherish ideal, desire to be extraordinary, only on the road… May the time be fulfilled and the future be promising…
Eye protection mode begins
❤ ❤ than heart