Android:如何以编程方式分析跟踪文件? [英] Android : How to analyze the trace files programmatically?
本文介绍了Android:如何以编程方式分析跟踪文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个跟踪文件列表,我需要对其进行分析.不用工具traceview
可以通过编程方式分析它们吗?
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
?
推荐答案
与-o
标志一起使用的dmtracedump
工具将解析该文件,并将其转储为面向人类的可读格式的stdout.您可以解析此输出,也可以仅克隆dmtracedump
中的文件解析器.来源此处.
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.
这篇关于Android:如何以编程方式分析跟踪文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文