【问题标题】:Does `adb shell top` show the average cpu usage over the update time?`adb shell top` 是否显示更新时间内的平均 CPU 使用率?
【发布时间】:2016-09-26 08:28:35
【问题描述】:

当使用 Android 调用 adb shell top 来测量 cpu 使用率时,显示的 cpu 使用率百分比是更新时间的平均值,还是较短时间的使用情况快照,特别是,如果我增加更新时间使用-d,它会给我整个期间的平均 CPU 使用率吗?

【问题讨论】:

标签: android adb


【解决方案1】:

我将 top -d 与默认系统监视器报告的 CPU 使用率进行了比较。我尝试了“top -d 1”和“top -d 10”。只是为了涵盖一个短时期和大时期。 在这两种情况下, top -d 都没有给出瞬时 CPU 使用率。所以我猜这是这段时间的平均 CPU 使用率。

PS:这两种情况有很大的不同。另外我在我的linux系统中使用了top -d。我假设 adb top 和 linux top 的工作将与基于 linux 的 android 相同。

【讨论】:

  • 这次你碰巧是对的。但猜测和假设属于评论部分。答案是经过证实的事实
猜你喜欢
  • 2010-12-14
  • 1970-01-01
  • 1970-01-01
  • 2021-09-25
  • 2019-11-22
  • 1970-01-01
  • 1970-01-01
  • 2015-11-05
  • 1970-01-01
相关资源
最近更新 更多