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: