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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/tests/tiobench/tiobench.py ('k') | client/tests/tracing_microbenchmark/control » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import os
2 from autotest_lib.client.bin import utils
3
4
5 class Tracer(object):
6 """
7 Common interface for tracing.
8 """
9
10 tracing_dir = None
11
12 def trace_config(self, path, value):
13 """
14 Write value to a tracing config file under self.tracing_dir.
15 """
16 path = os.path.join(self.tracing_dir, path)
17 utils.open_write_close(path, value)
18
19 def warmup(self, buffer_size_kb):
20 pass
21 def cleanup(self):
22 pass
23 def start_tracing(self):
24 pass
25 def stop_tracing(self):
26 pass
27 def gather_stats(self, results):
28 pass
29 def reset_tracing(self):
30 pass
OLDNEW
« 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