Android : How to analyze the trace files programma

2019-09-02 02:25发布

问题:

I have a list of trace files and I need to analyze them. Is there any way to analyze them programmatically without using the tool traceview?

回答1:

The dmtracedump tool, used with the -o flag, will parse the file and dump it to stdout in a line-oriented human-readable format. You can either parse this output or just clone the file parser from dmtracedump. Sources here.