Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use traceview in eclipse for android development?

Tags:

android

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.

like image 729
user590849 Avatar asked Jan 31 '11 12:01

user590849


2 Answers

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.

like image 74
Display name Avatar answered Nov 17 '22 00:11

Display name


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.

like image 45
ludwigm Avatar answered Nov 17 '22 00:11

ludwigm