Android 进程查看器

发布于 2024-12-14 06:31:46 字数 119 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美人迟暮 2024-12-21 06:31:46

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文