Performance_debug

Perflock in Android O

打印log:

adb root
adb disable-verity
adb reboot
adb root
adb remount
adb shell “echo ‘debug.trace.perf=1’ >> /system/build.prop”
adb reboot

adb shell
logcat | grep PERF

1
2
3
4
5
6
7
8
02-07 20:15:46.055 726 726 E ANDR-PERF-MPCTL: perf_lock_acq: client_pid=1747, client_tid=1790, inupt handle=0, duration=2000 ms, num_args=10, list=0x40C00000 0x1 0x40804000 0xFFF 0x40804100 0xFFF 0x40800000 0xFFF 0x40800100 0xFFF 
02-07 20:15:46.056 726 756 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
02-07 20:15:47.500 726 726 E ANDR-PERF-MPCTL: perf_lock_acq: client_pid=1747, client_tid=3031, inupt handle=0, duration=2147483647 ms, num_args=10, list=0x40C00000 0x1 0x40804000 0xFFF 0x40804100 0xFFF 0x40800000 0xFFF 0x40800100 0xFFF
02-07 20:15:47.501 726 756 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
02-07 20:15:47.977 726 726 E ANDR-PERF-MPCTL: perf_lock_acq: client_pid=1747, client_tid=2093, inupt handle=0, duration=2147483647 ms, num_args=10, list=0x40C00000 0x1 0x40804000 0xFFF 0x40804100 0xFFF 0x40800000 0xFFF 0x40800100 0xFFF
02-07 20:15:47.977 726 756 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
02-07 20:15:58.839 726 726 E ANDR-PERF-MPCTL: perf_lock_acq: client_pid=701, client_tid=2694, inupt handle=0, duration=0 ms, num_args=2, list=0x101 0x20E
02-07 20:15:58.840 726 756 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only

查看可用频率:

1
2
3
4
adb shell cat sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
633600 902400 1113600 1401600 1536000 1747200 1843200
adb shell cat sys/devices/system/cpu/cpufreq/policy4/scaling_available_frequencies
1113600 1401600 1747200 1958400 2150400 2208000

本文标题:Performance_debug

文章作者:Ranger Zhou

发布时间:2018年02月08日 - 16:02

最后更新:2018年07月18日 - 21:07

原始链接:http://rangerzhou.top/2018/02/08/Performance_debug/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。

Ranger Zhou wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!
坚持原创技术分享,您的支持将鼓励我继续创作!