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

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: 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
Index: systrace/systrace/run_systrace.py
diff --git a/systrace/systrace/run_systrace.py b/systrace/systrace/run_systrace.py
index 6a18095600dc423fb8076c40bc4e735399a1ce23..168f4063a823e90c20496bd4f35d0dd4ba3761ea 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
# The default agent directory.
@@ -200,6 +201,9 @@ def main():
for a in agents:
a.StartAgentTracing(options, categories, 10)
+ if options.trace_time:
+ time.sleep(options.trace_time)
+
for a in agents:
a.StopAgentTracing(10)
« no previous file with comments | « no previous file | systrace/systrace/tracing_agents/ftrace_agent.py » ('j') | systrace/systrace/tracing_agents/ftrace_agent.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698