Android 跟踪日志字段的含义是什么
我使用 DDMS 分析工具并获取跟踪日志 (.trace)。我使用 'traceview -r ddms349082309823084.trace > 将 .trace 文件转换为 .txt 文件example.txt'.
但是,我无法理解文本文件中每个字段的确切含义。请参考下例。
id thread global start,end method
9 205 199 208 + android/os/Debug.isMethodTracingActive ()Z
9 208 202 205 + dalvik/system/VMDebug.isMethodTracingActive ()Z
9 211 205 0 dalvik/system/VMDebug.isMethodTracingActive ()Z
9 214 208 0 android/os/Debug.isMethodTracingActive ()Z
9 225 219 222 + org/apache/harmony/dalvik/ddmc/Chunk.<init> (I[BII)V
9 228 222 0 org/apache/harmony/dalvik/ddmc/Chunk.<init> (I[BII)V
有谁知道吗?
I used DDMS profiling tool and get a trace log (.trace). And I converted .trace file to .txt file using 'traceview -r ddms349082309823084.trace > sample.txt'.
But, I cannot understand exact meaning of each fields in the text file. please refer to blow example.
id thread global start,end method
9 205 199 208 + android/os/Debug.isMethodTracingActive ()Z
9 208 202 205 + dalvik/system/VMDebug.isMethodTracingActive ()Z
9 211 205 0 dalvik/system/VMDebug.isMethodTracingActive ()Z
9 214 208 0 android/os/Debug.isMethodTracingActive ()Z
9 225 219 222 + org/apache/harmony/dalvik/ddmc/Chunk.<init> (I[BII)V
9 228 222 0 org/apache/harmony/dalvik/ddmc/Chunk.<init> (I[BII)V
is there anybody know?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试使用traceview来查看跟踪日志(.trace),这样您就可以得到一个很好的UI来理解它!
更多关于Traceview Layout的信息,请参考:
http://developer.android.com/guide/developing/debugging/debugging -tracing.html
如果您想了解有关跟踪日志的详细信息,您还可以参考此页面:
http://developer.android.com/guide/developing/debugging /debugging-tracing.html#format
Please try to use traceview to view the trace log (.trace), so that you could get a nice UI to understand it!
More info about Traceview Layout, please refer to:
http://developer.android.com/guide/developing/debugging/debugging-tracing.html
If you want to know details about trace logs, you could also refer in this page:
http://developer.android.com/guide/developing/debugging/debugging-tracing.html#format