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

Unified Diff: telemetry/telemetry/web_perf/timeline_based_measurement.py

Issue 2073363002: Revert of [Telemetry] Allow users to select TBMv1 metrics to run alongside TBMv2 (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/web_perf/timeline_based_measurement.py
diff --git a/telemetry/telemetry/web_perf/timeline_based_measurement.py b/telemetry/telemetry/web_perf/timeline_based_measurement.py
index 3795aa1ba97dcf7d740a350d4cb62d9201cd3a13..e476424ae1d9191a5bd4dcda47ab9297ec9d611b 100644
--- a/telemetry/telemetry/web_perf/timeline_based_measurement.py
+++ b/telemetry/telemetry/web_perf/timeline_based_measurement.py
@@ -191,7 +191,7 @@
" Given overhead level: %s" % overhead_level)
self._timeline_based_metric = None
- self._legacy_timeline_based_metrics = []
+ self._legacy_timeline_based_metrics = _GetAllLegacyTimelineBasedMetrics()
def ExtendTraceCategoryFilter(self, filters):
@@ -218,12 +218,14 @@
metric: A string metric path under //tracing/tracing/metrics.
"""
assert isinstance(metric, basestring)
+ self._legacy_timeline_based_metrics = None
self._timeline_based_metric = metric
def GetTimelineBasedMetric(self):
return self._timeline_based_metric
def SetLegacyTimelineBasedMetrics(self, metrics):
+ assert self._timeline_based_metric == None
assert isinstance(metrics, collections.Iterable)
for m in metrics:
assert isinstance(m, timeline_based_metric.TimelineBasedMetric)
@@ -280,18 +282,10 @@
if self._tbm_options.GetTimelineBasedMetric():
self._ComputeTimelineBasedMetric(results, trace_value)
- # Legacy metrics can be computed, but only if explicitly specified.
- if self._tbm_options.GetLegacyTimelineBasedMetrics():
- self._ComputeLegacyTimelineBasedMetrics(results, trace_result)
else:
- # Run all TBMv1 metrics if no other metric is specified (legacy behavior)
- if not self._tbm_options.GetLegacyTimelineBasedMetrics():
- logging.warn('Please specify the TBMv1 metrics you are interested in '
- 'explicitly. This implicit functionality will be removed '
- 'on July 17, 2016.')
- self._tbm_options.SetLegacyTimelineBasedMetrics(
- _GetAllLegacyTimelineBasedMetrics())
- self._ComputeLegacyTimelineBasedMetrics(results, trace_result)
+ assert self._tbm_options.GetLegacyTimelineBasedMetrics()
+ self._ComputeLegacyTimelineBasedMetrics(results, trace_result)
+
def DidRunStory(self, platform):
"""Clean up after running the story."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698