1

I am currently running systrace with the category "freq" to capture cpu frequency with my device and I noticed that it only outputs something during a change in the freq. So if there was no change during the capture, the html output that systrace spits out will be blank. I would like to modify the atrace function and show cpu frequency even if there is no change. I was thinking of reading cpu/cpu*/cpufreq/cpuinfo_cur_freq in adb shell and simulating a change to say it changed from 0 to the current so it could at least output something. Does anyone have any ideas? Thanks.

4

1 回答 1

0

您可以在 systrace 的 html 输出中添加一些虚假的 ftrace 消息。因此,如果您在输出 html 文件的跟踪文本开头附近添加一些包含唯一(零?)值的虚假 cpu-freq 事件消息,您将在 systrace 输出屏幕中看到 cpu freq 行。

于 2020-02-17T22:36:58.997 回答