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

Unified Diff: systrace/systrace/update_systrace_trace_viewer.py

Issue 1776013005: [DO NOT COMMIT] Refactor systrace to support new clock sync design (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: changes from code review Created 4 years, 9 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/update_systrace_trace_viewer.py
diff --git a/systrace/systrace/update_systrace_trace_viewer.py b/systrace/systrace/update_systrace_trace_viewer.py
index 09eb0553298fbcdf337611c7e25c801a8d30d24a..ae255fbd2097037acbf0e679be0ce85fbdee529f 100755
--- a/systrace/systrace/update_systrace_trace_viewer.py
+++ b/systrace/systrace/update_systrace_trace_viewer.py
@@ -47,7 +47,7 @@ def get_catapult_rev_in_git_():
return ''
-def update(no_auto_update=False, no_min=False):
+def update(dest=None, no_auto_update=False, no_min=False):
"""Update the systrace trace viewer html file.
When the html file exists, do not update the file if
@@ -55,6 +55,7 @@ def update(no_auto_update=False, no_min=False):
2. or the revision is not changed.
Args:
+ dest: Directory to put the systrace_trace_viewer.html file.
no_auto_update: If true, force updating the file with revision
NO_AUTO_UPDATE_. Future updates will be skipped unless this
argument is true again.
@@ -74,7 +75,7 @@ def update(no_auto_update=False, no_min=False):
return
# Generate the vulcanized result.
- output_html_file = SYSTRACE_TRACE_VIEWER_HTML_FILE_
+ output_html_file = os.path.join(dest, SYSTRACE_TRACE_VIEWER_HTML_FILE_)
with codecs.open(output_html_file, encoding='utf-8', mode='w') as f:
vulcanize_trace_viewer.WriteTraceViewer(
f,

Powered by Google App Engine
This is Rietveld 408576698