Systrace is a set of tools introduced by Android 4.1 For performance analysis. It is based on the ftrace mechanism of the Linux kernel (used to track function calls in the Linux kernel) and can output the current function call status of each thread, in addition, it can be compared with the current CPU thread running status, display vsync interval, surfaceflinger window composite interval, and other system information on the same timeline, it is easier and easier for us to analyze the running status of programs at a certain point in the current system context, for example, you can easily analyze which functions of your program occupy too much time in the UI thread, thus missing the current window
Composite causes frame drop.
How to use:
Http://developer.android.com/tools/help/systrace.html
How to analyze performance:
Http://developer.android.com/tools/debugging/systrace.html
Ftrace-related materials:
Http://www.kernel.org/doc/Documentation/trace/ftrace.txt
Https://www.osadl.org/fileadmin/dam/presentations/RTLWS11/rostedt-ftrace.pdf
Support description:
1. Only supported in Android 4.1 +
2. Non-native Rom such as CM may not be supported. Check whether the system has this directory-/sys/kernel/debug/tracing.
3. The systrace. py script can only be run in Ubuntu, but cannot be run in windows.