问题
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.
来源:https://stackoverflow.com/questions/19977128/android-how-to-analyze-the-trace-files-programmatically