Pass clogs to find medicine, points lamp night reading.
Why did you abandon it and introduce it?
Because when you look at the use of Android performance optimization tools, there are a lot of tools. Only when we have a preliminary understanding of the evolution of various tools, can we choose the best tool to use more quickly, discard the old tools decisively, and do not be disappointed in the choice of tools (dazzling tools really make people headache).
Evolution of ADM
ADM (Android Device Monitor), ADM has been deprecated in Android Studio 3.1 and removed from Android Studio 3.2.
The past lives of components in ADM
ADM components | The functions that should be adopted |
---|---|
Dalvik Debug Monitor Server (DDMS) | This tool is deprecated. Use Android Studio 3.0 or later insteadAndroid ProfilerTo analyze application CPU, memory, and network usage. If you want to perform other debugging tasks, such as sending commands to connected devices to set up port forwarding, transferring files, or capturing screenshots, use the Android Debug Bridge (ADB), Android emulator, device file browser, or Debugger window. |
Traceview | This tool is deprecated. Check what you caught by detecting your application using the Debug class.trace File, record new method tracking, export.trace File and check real-time CPU usage of application processes, please useAndroid Studio CPU Profiler |
Systrace | Use Systrace on the command line or a simplified system trace in CPU Profiler if you need to check native system processes and resolve interface stutters caused by frame loss. CPU profilers provide a number of features for analyzing application processes. Systrace: For details, please go toAndroid Performance Optimization family Bucket Perfetto is a new tool to replace SystracePerfetto is a new platform-level tracking tool introduced in Android 10. For more information, go toAndroid Performance Optimization family Bucket |
OpenGL ES tracker | This tool is deprecated. useGraphics API Debugger, please go toAndroid Performance Optimization family Bucket |
Hierarchy Viewer | This tool is deprecated. To examine an application’s view hierarchy at run time, use the Layout inspector (Layout Inspector). If you want to analyze application of the layout of the rendering speed, please use the Windows. OnFrameMetricsAvailableListener |
Pixel Perfect | This tool is deprecated. Please use the layout inspector (Layout Inspector). For details, please go toAndroid Performance Optimization family Bucket |
Network traffic tool | This tool is deprecated. If you need to view the mode and time of data transmission over the network, run theNetwor Profiler |
Start the ADM
Boot path: \Android\Sdk\tools\lib\monitor-x86_64\monitor
Note: Each device can only be attached to one debugger process at a time. So, for example, if you are using Android Studio to debug applications on a device, you need to disconnect the Android Studio debugger from the device before attaching the debugger process from ADM.
Field experience
(1) the DDMS
Super versatile, it’s like a family bucket
(2) TraceView
This was the prototype of the Cpu Profiler today
(3) OpenGLES tracker
(4) Hierarchy Viewer
In fact, it is pretty easy to use, on the tree representation of graphics, really great
(5) Pixel Perfect
(6) Network traffic tools
Network profiler is obviously better
summary
- The basic functions of ADM have been previewed above, presumably everyone has already had the function tree model about ADM, understand the past life of ADM, hope to help the use of performance optimization tools.
- While some of ADM’s features are personally useful, their future tools have completely superseded them.
- The new tool can be used in a better linkage with AndroidStudio, can be in one screen, at the same time to analyze the code, view performance testing details, more user-friendly, more rich functions.
- Embrace new technologies, new tools, new languages, new frameworks… Sing along: We’re walking down the road…
Xiaobian extension links
- SamplePop code download
- Android Performance Optimization family Bucket
Refer to the link
- The first article you should read
- Hierarchy Viewer -> Hierarchy Viewer
- Good blog post -> For deprecated tools (I recommend this one)
More no catkins due to the wind, but sunflowers to the sun
❤ ❤ than heart