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

Unified Diff: tools/perf/core/perf_benchmark.py

Issue 2055063002: Plumb iteration info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make GetExtraIterationInfo call super().GetExtraIterationInfo() 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: tools/perf/core/perf_benchmark.py
diff --git a/tools/perf/core/perf_benchmark.py b/tools/perf/core/perf_benchmark.py
index 4158e2d23219bf17eea478976e9230368c9bec6d..9a9a9eeddd29d0c60bb9c95581b8a0891c75535f 100644
--- a/tools/perf/core/perf_benchmark.py
+++ b/tools/perf/core/perf_benchmark.py
@@ -24,6 +24,23 @@ class PerfBenchmark(benchmark.Benchmark):
""" To be overridden by perf benchmarks. """
pass
+ def GetExtraIterationInfo(self):
+ info = super(PerfBenchmark, self).GetExtraIterationInfo()
+
+ botName = os.environ.get('BUILDBOT_BUILDERNAME')
+ if botName:
+ info['botName'] = botName
+
+ buildNumber = os.environ.get('BUILDBOT_BUILDNUMBER')
+ if buildNumber:
+ info['buildNumber'] = buildNumber
+
+ revision = os.environ.get('BUILDBOT_REVISION')
+ if revision:
+ info['revision'] = revision
+
+ return info
+
def CustomizeBrowserOptions(self, options):
# Subclass of PerfBenchmark should override SetExtraBrowserOptions to add
# more browser options rather than overriding CustomizeBrowserOptions.
« 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