1
votes

I want to profiling an android app. I follow the instructions on Android's website here: http://developer.android.com/guide/developing/tools/traceview.html

The website told me to use Debug.startMethodTracing() and Debug.stopMethodTracing() Then finally I generate a trace file for my app and successfully view that file using traceview.

At the end of that web page it says there is a tool call dmtracedump can generate function call relation graph. I follow the instructions and also install Graphviz before using it.

But no matter how I try to use dmtracedump, the tool just stuck and nothing comes out. I used commond like

dmtracedump test1.trace

dmtracedump -g test1.png test1.trace

Is there anything I got worng when using this tool? Can any one show me how to generate a graph from dmtracedump?

Thanks a lot !

1
You could try the dump -o option and see if that does anything - Chris Stratton
Yes I've tried -o option, it works fine. But everything else seems broken. - henry74918

1 Answers

2
votes

dmtracedump is fairly broken at this point. Only the "-o" option is guaranteed to work.