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

Unified Diff: client/tests/tracing_microbenchmark/base_tracer.py

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 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 | « client/tests/tiobench/tiobench.py ('k') | client/tests/tracing_microbenchmark/control » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/tracing_microbenchmark/base_tracer.py
diff --git a/client/tests/tracing_microbenchmark/base_tracer.py b/client/tests/tracing_microbenchmark/base_tracer.py
new file mode 100644
index 0000000000000000000000000000000000000000..e36eca4244ab2b6c22351416038f212314e74387
--- /dev/null
+++ b/client/tests/tracing_microbenchmark/base_tracer.py
@@ -0,0 +1,30 @@
+import os
+from autotest_lib.client.bin import utils
+
+
+class Tracer(object):
+ """
+ Common interface for tracing.
+ """
+
+ tracing_dir = None
+
+ def trace_config(self, path, value):
+ """
+ Write value to a tracing config file under self.tracing_dir.
+ """
+ path = os.path.join(self.tracing_dir, path)
+ utils.open_write_close(path, value)
+
+ def warmup(self, buffer_size_kb):
+ pass
+ def cleanup(self):
+ pass
+ def start_tracing(self):
+ pass
+ def stop_tracing(self):
+ pass
+ def gather_stats(self, results):
+ pass
+ def reset_tracing(self):
+ pass
« no previous file with comments | « client/tests/tiobench/tiobench.py ('k') | client/tests/tracing_microbenchmark/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698