how to use traceview in eclipse for android development?

前端 未结 5 681
自闭症患者
自闭症患者 2020-12-15 17:52

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 tr

5条回答
  •  旧时难觅i
    2020-12-15 18:32

    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.

提交回复
热议问题