Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Issue 19857003: [Telemetry] Add a profiler based loading measurement. (Closed)

Created:
7 years, 5 months ago by tonyg
Modified:
7 years, 4 months ago
Reviewers:
dtu, nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org, rmistry1
Visibility:
Public.

Description

[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

Patch Set 1 #

Total comments: 9

Patch Set 2 : Add tests #

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

Messages

Total messages: 10 (0 generated)
tonyg
7 years, 5 months ago (2013-07-21 21:40:20 UTC) #1
nduca
lgtm on my part but maybe dtu can look at the first page business https://codereview.chromium.org/19857003/diff/1/tools/perf/measurements/loading_measurement_analyzer.py ...
7 years, 5 months ago (2013-07-23 06:01:27 UTC) #2
nduca
(if the first page stuff is right, lets add a unit test for whatever behavior ...
7 years, 5 months ago (2013-07-23 06:01:49 UTC) #3
tonyg
https://codereview.chromium.org/19857003/diff/1/tools/perf/measurements/loading_measurement_analyzer.py File tools/perf/measurements/loading_measurement_analyzer.py (right): https://codereview.chromium.org/19857003/diff/1/tools/perf/measurements/loading_measurement_analyzer.py#newcode48 tools/perf/measurements/loading_measurement_analyzer.py:48: if not value or value == '-': On 2013/07/23 ...
7 years, 5 months ago (2013-07-23 18:41:21 UTC) #4
dtu
https://codereview.chromium.org/19857003/diff/1/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/19857003/diff/1/tools/telemetry/telemetry/page/page_runner.py#newcode73 tools/telemetry/telemetry/page/page_runner.py:73: if self.first_page[page]: On 2013/07/23 18:41:21, tonyg wrote: > On ...
7 years, 5 months ago (2013-07-23 20:09:43 UTC) #5
tonyg
On 2013/07/23 20:09:43, Dave Tu wrote: > https://codereview.chromium.org/19857003/diff/1/tools/telemetry/telemetry/page/page_runner.py > File tools/telemetry/telemetry/page/page_runner.py (right): > > https://codereview.chromium.org/19857003/diff/1/tools/telemetry/telemetry/page/page_runner.py#newcode73 ...
7 years, 5 months ago (2013-07-23 20:27:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/19857003/8001
7 years, 5 months ago (2013-07-23 20:28:09 UTC) #7
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-23 20:34:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/19857003/8001
7 years, 5 months ago (2013-07-23 21:11:11 UTC) #9
commit-bot: I haz the power
7 years, 4 months ago (2013-07-23 23:54:45 UTC) #10
Message was sent while issue was closed.
Change committed as 213279

Powered by Google App Engine
This is Rietveld 408576698