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

Issue 59403008: telemetry: Add RenderingStatsUnitTest. (Closed)

Created:
7 years, 1 month ago by ernstm
Modified:
7 years, 1 month ago
Reviewers:
nduca, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

telemetry: Add RenderingStatsUnitTest. SmoothnessMetricUnitTest mixes testing of TimelineModel, SmoothnessMetric, and RenderingStats. This patch adds a dedicated unit test for RenderingStats only. It creates a TimelineModel directly, without using TraceEventTimelineImporter (which has its own unit test). RenderingStatsUnitTest verifies that RenderingStats extracts the correct events from the model. This patch also fixes a bug in TimelineModel.FindTimelineMarkers uncovered by the new test. SmoothnessMetricUnitTest itself will be refactored in a separate CL. R=nduca@chromium.org, tonyg@chromium.org BUG=314877 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233512

Patch Set 1 #

Patch Set 2 : Changed 'label' to 'name' in FindTimelineMarkers. #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -17 lines) Patch
M tools/perf/metrics/rendering_stats.py View 1 2 3 chunks +0 lines, -5 lines 0 comments Download
A tools/perf/metrics/rendering_stats_unittest.py View 1 chunk +192 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/timeline/model.py View 1 2 1 chunk +15 lines, -12 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ernstm
This is the first step of the smoothness metric unit test clean-up. PTAL. Note: this ...
7 years, 1 month ago (2013-11-06 00:51:44 UTC) #1
tonyg
lgtm Wonderful!
7 years, 1 month ago (2013-11-06 17:09:25 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/59403008/70001
7 years, 1 month ago (2013-11-07 00:05:12 UTC) #3
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 06:49:50 UTC) #4
Message was sent while issue was closed.
Change committed as 233512

Powered by Google App Engine
This is Rietveld 408576698