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

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 nit 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..c279fc8c1339be9a4437a24f3b11577a4f60665b 100644
--- a/telemetry/telemetry/internal/actions/page_action.py
+++ b/telemetry/telemetry/internal/actions/page_action.py
@@ -4,8 +4,11 @@
import re
+from py_trace_event import trace_event
+
from telemetry import decorators
+
GESTURE_SOURCE_DEFAULT = 'DEFAULT'
GESTURE_SOURCE_MOUSE = 'MOUSE'
GESTURE_SOURCE_TOUCH = 'TOUCH'
@@ -23,6 +26,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."""
« no previous file with comments | « telemetry/telemetry/core/network_controller.py ('k') | telemetry/telemetry/internal/backends/app_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698