Descriptiontelemetry: Improve perf profiler
This patch makes some improvements to the perf profiler in telemetry:
1. Add a prebuilt perf binary to be run on the Linux x86_64 host. This
lets us rely on always having a recent perf binary present, allowing
us to use source code annotation by default on Android. The binary
also includes patches needed for importing perf data into Trace
Viewer.
2. Use better defaults for running perf. Most importantly, sample at
2000 Hz instead of the default 100 Hz.
3. On the Linux host, disable kernel symbol hiding for more complete
symbolization. Note that this is also required by the new version of
perf which this patch adds.
4. Turn on all CPUs on Android while running perf. This works around
a bug in perf where samples from CPUs that were brought online while
perf was running were not collected. The rationale for doing this
only for perf instead of performance tests in general (to reduce noise)
is that having all CPUs enabled for a long time is likely to lead to
thermal throttling.
BUG=375754
TEST=tools/telemetry/run_tests --browser=android-content-shell TestAndroidProfilingHelper;
tools/telemetry/run_tests --browser=android-content-shell TestPerfProfiler;
build/android/chrome_profiler/run_tests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276049
Patch Set 1 #
Total comments: 12
Patch Set 2 : Nits begone. #Patch Set 3 : Minor tweak. #
Total comments: 3
Patch Set 4 : Poll quicker. #Messages
Total messages: 24 (0 generated)
|