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

Unified Diff: tools/telemetry/telemetry/page/actions/interact.py

Issue 123593002: telmetry: update InteractAction to use new timeline marker mechanism (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/actions/interact.py
diff --git a/tools/telemetry/telemetry/page/actions/interact.py b/tools/telemetry/telemetry/page/actions/interact.py
index 222c3089c1916a0071c3a03767b9b553bc6ea7a4..f3d9447a430c9da7791cb9b2325afe44a225a499 100644
--- a/tools/telemetry/telemetry/page/actions/interact.py
+++ b/tools/telemetry/telemetry/page/actions/interact.py
@@ -7,13 +7,11 @@ from telemetry.page.actions import page_action
class InteractAction(page_action.PageAction):
def __init__(self, attributes=None):
super(InteractAction, self).__init__(attributes)
+ self._SetTimelineMarkerBaseName('InteractAction::RunAction')
def RunAction(self, page, tab, previous_action):
tab.ExecuteJavaScript(
- 'console.time("' + self.TimelineMarkerLabel() + '")')
+ 'console.time("' + self._GetUniqueTimelineMarkerName() + '")')
raw_input("Interacting... Press Enter to continue.")
tab.ExecuteJavaScript(
- 'console.timeEnd("' + self.TimelineMarkerLabel() + '")')
-
- def TimelineMarkerLabel(self):
- return 'InteractAction::RunAction'
+ 'console.timeEnd("' + self._GetUniqueTimelineMarkerName() + '")')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698