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

Unified Diff: telemetry/telemetry/internal/actions/page_action.py

Issue 2301523007: Add trace events for some of telemetry internal functions (Closed)
Patch Set: Address Petr's nits Created 4 years, 3 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: telemetry/telemetry/internal/actions/page_action.py
diff --git a/telemetry/telemetry/internal/actions/page_action.py b/telemetry/telemetry/internal/actions/page_action.py
index a77d29619802cab631322047832e7591cc401c11..86c0d0f435818818f68678a8d4a2b4ee3f0c628f 100644
--- a/telemetry/telemetry/internal/actions/page_action.py
+++ b/telemetry/telemetry/internal/actions/page_action.py
@@ -4,8 +4,12 @@
import re
+from py_trace_event import trace_event
+
from telemetry import decorators
+
petrcermak 2016/09/07 09:38:24 nit: there should be only 2 blank lines (please re
nednguyen 2016/09/07 17:26:12 Done.
+
GESTURE_SOURCE_DEFAULT = 'DEFAULT'
GESTURE_SOURCE_MOUSE = 'MOUSE'
GESTURE_SOURCE_TOUCH = 'TOUCH'
@@ -23,6 +27,8 @@ class PageActionFailed(Exception):
class PageAction(object):
"""Represents an action that a user might try to perform to a page."""
+ __metaclass__ = trace_event.TracedMetaClass
+
def WillRunAction(self, tab):
"""Override to do action-specific setup before
Test.WillRunAction is called."""

Powered by Google App Engine
This is Rietveld 408576698