0

Add tip for perf on a Cloudtop

`perf record` failed to record any samples for me on my Cloudtop, and
after some googling I found https://stackoverflow.com/a/35802635/3490116
which suggested adding `-e cpu-clock`.

This CL tries to save other Cloudtop users from wasting time on this.

Bug: N/A
Change-Id: I3f5520d40629fceec2f790d4c93dd3d92be95d3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5331640
Commit-Queue: Jeroen Dhollander <jeroendh@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1286479}
This commit is contained in:
Jeroen Dhollander
2024-04-12 14:52:01 +00:00
committed by Chromium LUCI CQ
parent faa370061e
commit 40905798ff

@ -45,6 +45,10 @@ Run the perf tool like this:
*** promo
To adjust the sampling frequency, use the `-F` argument, e.g., `-F 1000`.
***
*** promo
If this fails to collect any samples on a Cloudtop/VM (presumably while profiling tests),
try adding `-e cpu-clock`.
***
To stop profiling, press `Control-c` in the terminal window where `perf` is running. Run `pprof` to view the results, providing the path to the browser executable; e.g.: