Android 进程查看器
Eclipse 是否有一个 GUI 插件可以显示实时进程/线程以及它们使用了多少 CPU?我为什么要这个?因为我有一个使用 Thread.sleep() 的服务(IntentService),并且我想验证是否保留了电池寿命。
Is there a GUI addon for Eclipse that displays real-time processes/threads and how much CPU they use? Why do I want this? Because I have an service (an IntentService) that uses Thread.sleep() and I want to verify that battery life is preserved.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DDMS 视角是 ADT 的一部分。窗口->开放视角->其他-> DDMS。
它应该有一个设备窗口,其中列出了连接的设备以及您可以调试的任何应用程序。选择您的应用程序,然后按更新线程(顶部的白色箭头)。 “线程”窗口应列出所有线程。如果双击其中一个,您可以看到单击时它正在做什么。
单击开始方法分析,当您停止方法分析时,您将详细了解在启用方法分析期间哪些线程正在执行哪些操作。
The DDMS perspective is part of ADT. Window -> Open Perspective -> Other -> DDMS.
It should have a Devices window that lists connected devices and whatever apps you can debug. Select your app then press Update Threads (white arrows at the top). The Threads window should list all threads. If you double click one, you can see what it was doing at the time of the click.
Click Start Method Profiling, when you Stop Method Profiling you'll get a break down of what thread was doing what over the duration the Method Profiling was enabled.