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

Unified Diff: systrace/systrace/run_systrace.py

Issue 1866753002: Add new timing mechanism to ftrace. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: rebase Created 4 years, 8 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 | systrace/systrace/tracing_agents/ftrace_agent.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: systrace/systrace/run_systrace.py
diff --git a/systrace/systrace/run_systrace.py b/systrace/systrace/run_systrace.py
index 4b1f27c60539cbe902d4c206f6caad8219b1a7e9..32732fcc3c8ffe695133607d389b8e814817154b 100755
--- a/systrace/systrace/run_systrace.py
+++ b/systrace/systrace/run_systrace.py
@@ -24,6 +24,7 @@ if version != (2, 7):
import imp
import optparse
import os
+import time
_CATAPULT_DIR = os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.path.pardir, os.path.pardir)
@@ -242,6 +243,13 @@ def main():
for a in agents:
a.StartAgentTracing(options, categories, 10)
+ if options.trace_time:
+ print 'Tracing running for %d seconds.' % options.trace_time
+ time.sleep(options.trace_time)
+ else:
+ print 'Tracing running, stop with ENTER.'
+ raw_input()
+
for a in agents:
a.StopAgentTracing(10)
« no previous file with comments | « no previous file | systrace/systrace/tracing_agents/ftrace_agent.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698