简体   繁体   中英

how to use traceview in eclipse for android development?

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.

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.

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.

You can use trace view directly from DDMS window on clicking profiling option and open trace view

在此输入图像描述

在此输入图像描述

Thanks

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.

R10 says that traceview can now be started from eclipse ( see here )

But I did not figured out how yet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM