|
[Telemetry] Add a profiler based loading measurement.
This measurement reports the hottest functions during page load. I plan to run
it over the top million sites.
It works by loading each page twice, the profile is captured for the second load
only. This is because cross-origin navigations cause the renderer to be swapped
out during profiling and to get more stable results.
This required a couple of core modifications:
1. csv_page_measurement_results should work when the page runner creates a
dummy results object because discard_first_results is enabled.
2. discard_first_results should discard the first result of each page in
the page set. Not just the first page.
BUG=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213279
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+171 lines, -20 lines) |
Patch |
 |
M |
tools/perf/measurements/loading_measurement_analyzer.py
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
A |
tools/perf/measurements/loading_profile.py
|
View
|
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/telemetry/telemetry/core/browser.py
|
View
|
|
1 chunk |
+13 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
|
View
|
1
|
3 chunks |
+32 lines, -1 line |
0 comments
|
Download
|
 |
A |
tools/telemetry/telemetry/core/platform/profiler/perf_profiler_unittest.py
|
View
|
1
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/telemetry/telemetry/core/platform/profiler/testdata/perf.profile
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
tools/telemetry/telemetry/page/csv_page_measurement_results.py
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/telemetry/telemetry/page/page_runner.py
|
View
|
1
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tools/telemetry/telemetry/page/page_runner_unittest.py
|
View
|
1
|
2 chunks |
+21 lines, -3 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|