Chinaunix首页 | 论坛 | 博客
  • 博客访问: 489331
  • 博文数量: 153
  • 博客积分: 3010
  • 博客等级: 中校
  • 技术积分: 1724
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-08 11:55
文章分类

全部博文(153)

文章存档

2011年(1)

2010年(55)

2009年(88)

2008年(9)

我的朋友

分类: LINUX

2009-02-26 22:01:30



the traceview tool which can be used to view traces gathered with startMethodTracing() (android.os.Debug) looks quite good.

This applies to an emulator run from git sources...

0. Make sure that development/tools/traceview/etc/manifest.txt says
"com.android.traceview.MainWindow" on the first line, not
"com.google".  If it doesn't, change it, remove out/host/common/obj/
JAVA_LIBRARIES/traceview_intermediates/javalib.jar, and rebuild.
(Otherwise, "traceview" won't start.  The current sources are correct,
so if you're synced up with git you're fine.)

1. Start the emulator with the trace flag, e.g. "emulator -trace foo".
2. Hit F9 to start tracing.  Hit it again to stop tracing.
3. Exit the emulator.
4. Run "tracedmdump foo".  tracedmdump is a shell command added when
you sourced "envsetup.sh".
5. "traceview out/target/product/generic/traces/foo/dmtrace".


refer to:


阅读(1101) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~