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

Unified Diff: tools/testrunner/local/perfdata.py

Issue 1468933002: [test] Switch off perf data feature on swarming. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: deopt fuzzer Created 5 years, 1 month 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 | « tools/testrunner/local/execution.py ('k') | tools/testrunner/objects/context.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testrunner/local/perfdata.py
diff --git a/tools/testrunner/local/perfdata.py b/tools/testrunner/local/perfdata.py
index 2979dc48661b9b48662a37a0555133b470ee25c3..29ebff773a5dd6a4ca2d31104d5c46910d19aa87 100644
--- a/tools/testrunner/local/perfdata.py
+++ b/tools/testrunner/local/perfdata.py
@@ -118,3 +118,29 @@ class PerfDataManager(object):
if not mode in modes:
modes[mode] = PerfDataStore(self.datadir, arch, mode)
return modes[mode]
+
+
+class NullPerfDataStore(object):
+ def UpdatePerfData(self, test):
+ pass
+
+ def FetchPerfData(self, test):
+ return None
+
+
+class NullPerfDataManager(object):
+ def __init__(self):
+ pass
+
+ def GetStore(self, *args, **kwargs):
+ return NullPerfDataStore()
+
+ def close(self):
+ pass
+
+
+def GetPerfDataManager(context, datadir):
+ if context.use_perf_data:
+ return PerfDataManager(datadir)
+ else:
+ return NullPerfDataManager()
« no previous file with comments | « tools/testrunner/local/execution.py ('k') | tools/testrunner/objects/context.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698