Using systrace in android application code

Android documentation says

you can use the methods of the Trace class to add instrumentation to 
your application code and see the results in a Systrace report.

I have added the following methods to my code

Trace.beginSection("test-trace");  

// block of code

Trace.endSection();

Now where can I check the results of this section. I run the systrace tool on the monitor of the Android device and record it for 30 seconds (a click is made on the button that executes the above block). It generates a trace.html file, but how can I get the above section information from this html file.

+4
source share
2 answers

He is there, I myself was looking for him for about an hour: D

If you have only one thread, it is shown in the user interface thread line, otherwise it is displayed in your specific line string.

, , "test-trace",

:)

+5

systrace , . --app=package-name. , systrace , , .

. com.faddensoft.multicoretest , :

python systrace.py --app=com.faddensoft.multicoretest gfx view sched dalvik

, . ( HTML -, , Chrome.)

0

All Articles