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

Unified Diff: tools/telemetry/telemetry/value/skip.py

Issue 636203002: Task Execution Duration metrics added as a new benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: tools/telemetry/telemetry/value/skip.py
diff --git a/tools/telemetry/telemetry/value/skip.py b/tools/telemetry/telemetry/value/skip.py
index 2b03725e1cf0fad17e5e35d72a39beb34c4e4fcd..fa5de5a5a39ab4a1551064f10fe59e48bd035bb1 100644
--- a/tools/telemetry/telemetry/value/skip.py
+++ b/tools/telemetry/telemetry/value/skip.py
@@ -4,6 +4,7 @@
from telemetry import value as value_module
+ONLY_SUMMARIES = "Only Showing Summaries"
Sami 2014/10/08 14:51:53 Prepend and underscore here to keep this private.
picksi1 2014/10/08 15:58:27 Done.
class SkipValue(value_module.Value):
@@ -61,6 +62,14 @@ class SkipValue(value_module.Value):
return SkipValue(**kwargs)
+ @property
+ def onlySummaries(self):
Sami 2014/10/08 14:51:53 only_summaries
picksi1 2014/10/08 15:58:27 Done.
+ return self.reason == ONLY_SUMMARIES
+
+ @classmethod
+ def SetOnlyShowingSummaries(cls, page):
+ return cls(page, ONLY_SUMMARIES)
+
@classmethod
def MergeLikeValuesFromSamePage(cls, values):
assert False, 'Should not be called.'

Powered by Google App Engine
This is Rietveld 408576698