I want to see my traces.
1- In code, I have added these lines of code:
// Start trace recording
android.os.Debug.startMethodTracing("hc_traceview");
and
// Stop trace recording
android.os.Debug.stopMethodTracing();
2- I can see "hc_traceview.terac
" in file explorer of DDMS.
3- Based on Viewing Trace Files in Traceview, I ran following command in terminal:
@hesam-K5VD:~/Desktop/Eclipse/sdk/tools$ traceview /mnt/sdcard/hc_traceview
But out put is:
The standalone version of traceview is deprecated.
Please use Android Device Monitor (tools/monitor) instead.
trace file '/mnt/sdcard/hc_traceview' not found
4- Based on suggestion, I ran following command in terminal:
@hesam-K5VD:~/Desktop/Eclipse/sdk/tools$ monitor /mnt/sdcard/hc_traceview
DDMS opened but my traces are not here :( How can I see my traces?
Any suggestion would be appreciated.
Please take a look here : DDMS
The page says you can start and stop method profiling inside DDMS view like this:
You should pull the trace out of the sdcard as follows:
cd your sdk/platform-tools
$ adb pull /sdcard/hc_traceview.trace
open the monitor (double click monitor.bat
in sdk/tools
).
click "Open File..." and select the hc_traceview.trace
from the sdk/platform-tools
folder.
You should now have clean view of your trace.
If any problem appear, please comment here.
After the DDMS opened, you have to click on the File menu and select "Open File...", then select the trace file generated in the before step, all the trace info will be displayed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With