Reputation: 11765
I want to use traceview in android in eclipse. I have a few questions: 1. Does my emulator phone need to have a sd card for traceview to work? 2. Is there anyway to start traceview directly from eclipse ide?
I did try to put sd card memory in my avd device but still i cannot find the folder marked sdcard.
thanks in advance.
Upvotes: 21
Views: 13129
Reputation: 71
You can use trace view directly from DDMS window on clicking profiling option and open trace view
Thanks
Upvotes: 0
Reputation: 2747
In Eclipse in the DDMS perspective you have to select your process in the devices view. Then click on the Start Method Profiling icon (three arrows with a red dot).
Once you are done click the same button again (it now has a black stop sign to signal that tracing is activated) and the trace file is automatically pulled from the device/the emulator and the results are displayed.
Upvotes: 38
Reputation: 3383
You can start Tracing with the eclipse integrated DDMS. After that you have to pull the created .trace file. Import that to your workspace and double click on it to open the view.
Myself didn't manage to get it to work because my whole eclipse crashed after that.
Upvotes: 4
Reputation: 3251
R10 says that traceview can now be started from eclipse (see here)
But I did not figured out how yet.
Upvotes: 0
Reputation: 234795
You don't need an sdcard if you specify an absolute path to Debug.startMethodTracing. Be aware, though that tracing can generate enormous files, so use it sparingly if you aren't going to use the sdcard. I don't think there's a way to start traceview directly from eclipse.
Upvotes: 0