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

Issue 165673008: [telemetry] Implement first version of timeline based measurement (Closed)

Created:
6 years, 10 months ago by nduca
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org, baker_google.com, mayankgupta
Visibility:
Public.

Description

[telemetry] Implement first version of timeline based measurement TimelineBasedMeasurement lets us compute a variety of different metrics for pages that do complex sequences of interactions. Whereas traditional telemetry measurements focus on reporting a single type of value for many pages, this lets a page decide what types of metrics it emits based on the behaviors its page actually performs. The contract is that the page emits console.time/timeEnd calls of a certain format describing when it is doing something worth noting, and what kind fo interaction it is doing. For instance, if a drawer animation is runnign, it would emit: MeasurementRequest.Drawer/smoothness This tells the timelineBasedMeasurement that the timeline data generated during this time should be analyzed for smoothness information, with results benig reported as things like Drawer.frame_time. Depends on https://codereview.chromium.org/177093013 BUG=345922 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255434

Patch Set 1 #

Total comments: 5

Patch Set 2 : rename to timeline_based_metric #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : With feedback and naming updates #

Total comments: 3

Patch Set 5 : ready for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -6 lines) Patch
A tools/perf/measurements/timeline_based_measurement.py View 1 2 3 4 1 chunk +110 lines, -0 lines 0 comments Download
A tools/perf/measurements/timeline_based_measurement_unittest.py View 1 2 3 1 chunk +113 lines, -0 lines 0 comments Download
A tools/perf/metrics/timeline_based_metric.py View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A tools/perf/metrics/timeline_interaction_record.py View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
A tools/perf/metrics/timeline_interaction_record_unittest.py View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/tracing_timeline_data.py View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/timeline/async_slice.py View 1 chunk +5 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/core/timeline/model.py View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/interaction_enabled_page.html View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
nduca
ptal, we shoudl be able to combine this with your smoothness cleanup to enable a ...
6 years, 10 months ago (2014-02-22 03:08:04 UTC) #1
tonyg
https://codereview.chromium.org/165673008/diff/1/tools/perf/measurements/meta_measurement.py File tools/perf/measurements/meta_measurement.py (right): https://codereview.chromium.org/165673008/diff/1/tools/perf/measurements/meta_measurement.py#newcode1 tools/perf/measurements/meta_measurement.py:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 10 months ago (2014-02-22 14:55:19 UTC) #2
nednguyen
https://codereview.chromium.org/165673008/diff/1/tools/perf/measurements/meta_measurement.py File tools/perf/measurements/meta_measurement.py (right): https://codereview.chromium.org/165673008/diff/1/tools/perf/measurements/meta_measurement.py#newcode30 tools/perf/measurements/meta_measurement.py:30: self.end = event.end nit: Maybe use self.bounds instead?
6 years, 10 months ago (2014-02-22 15:11:02 UTC) #3
nduca
Hi Tony - one thing I messed up here is not giving you nearly enough ...
6 years, 10 months ago (2014-02-22 20:38:18 UTC) #4
nduca
Hey Tony, took a pass on this to have clearer intrusiveness controls, better name. Various ...
6 years, 10 months ago (2014-02-25 05:29:17 UTC) #5
nednguyen
On 2014/02/25 05:29:17, nduca wrote: > Hey Tony, took a pass on this to have ...
6 years, 10 months ago (2014-02-26 00:59:55 UTC) #6
nednguyen
https://codereview.chromium.org/165673008/diff/110001/tools/perf/measurements/timeline_based_measurement.py File tools/perf/measurements/timeline_based_measurement.py (right): https://codereview.chromium.org/165673008/diff/110001/tools/perf/measurements/timeline_based_measurement.py#newcode42 tools/perf/measurements/timeline_based_measurement.py:42: raise Exception('Unrecognized metric type: %s' % request.metric_type) I think ...
6 years, 10 months ago (2014-02-26 01:00:10 UTC) #7
tonyg
Love it :) And thanks for explaining yesterday the design you have in mind. Just ...
6 years, 10 months ago (2014-02-26 17:20:03 UTC) #8
nduca
> > Is it possible to use the standard User Timing marks and measures instead ...
6 years, 9 months ago (2014-03-04 04:18:57 UTC) #9
nduca
All set for landing i think. ptal, folk.
6 years, 9 months ago (2014-03-04 05:33:51 UTC) #10
nednguyen
lgtm LGTM with some nit https://codereview.chromium.org/165673008/diff/130001/tools/perf/measurements/timeline_based_measurement.py File tools/perf/measurements/timeline_based_measurement.py (right): https://codereview.chromium.org/165673008/diff/130001/tools/perf/measurements/timeline_based_measurement.py#newcode64 tools/perf/measurements/timeline_based_measurement.py:64: based on those flags. ...
6 years, 9 months ago (2014-03-04 15:38:46 UTC) #11
nduca
6 years, 9 months ago (2014-03-04 17:43:39 UTC) #12
tonyg
lgtm
6 years, 9 months ago (2014-03-05 03:37:57 UTC) #13
nduca
The CQ bit was checked by nduca@chromium.org
6 years, 9 months ago (2014-03-06 02:35:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/165673008/150001
6 years, 9 months ago (2014-03-06 03:22:03 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 04:14:29 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276058
6 years, 9 months ago (2014-03-06 04:14:30 UTC) #17
nednguyen
The CQ bit was checked by nednguyen@google.com
6 years, 9 months ago (2014-03-06 16:29:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/165673008/150001
6 years, 9 months ago (2014-03-06 16:29:39 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 16:32:11 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-06 16:32:13 UTC) #21
nduca
The CQ bit was checked by nduca@chromium.org
6 years, 9 months ago (2014-03-06 18:41:17 UTC) #22
nduca
Notry=True because I believe failures to be flake after study.
6 years, 9 months ago (2014-03-06 18:43:41 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/165673008/150001
6 years, 9 months ago (2014-03-06 18:44:13 UTC) #24
nduca
The CQ bit was unchecked by nduca@chromium.org
6 years, 9 months ago (2014-03-06 19:08:18 UTC) #25
nduca
The CQ bit was checked by nduca@chromium.org
6 years, 9 months ago (2014-03-06 19:08:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/165673008/150001
6 years, 9 months ago (2014-03-06 20:56:59 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 21:28:38 UTC) #28
Message was sent while issue was closed.
Change committed as 255434

Powered by Google App Engine
This is Rietveld 408576698