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

Unified Diff: tools/perf/measurements/smooth_gesture_util.py

Issue 386023004: Cleanup while reading code: Move GetJavaScriptMarker to be a free function instead of static functi… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix tests. Created 6 years, 5 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 | tools/perf/measurements/smoothness_controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/smooth_gesture_util.py
diff --git a/tools/perf/measurements/smooth_gesture_util.py b/tools/perf/measurements/smooth_gesture_util.py
index 0930cc259156768b837eabda2b58861c5e190f70..a7d95d78b6347b660e012f554576130beccad29c 100644
--- a/tools/perf/measurements/smooth_gesture_util.py
+++ b/tools/perf/measurements/smooth_gesture_util.py
@@ -18,7 +18,7 @@ def GetAdjustedInteractionIfContainGesture(timeline, interaction_record):
markers.
"""
# Only adjust the range for gestures.
- if not interaction_record.logical_name.startswith('Gesture_'):
+ if not interaction_record.label.startswith('Gesture_'):
return copy.copy(interaction_record)
gesture_events = [
ev for ev
@@ -30,7 +30,7 @@ def GetAdjustedInteractionIfContainGesture(timeline, interaction_record):
return copy.copy(interaction_record)
if len(gesture_events) > 1:
raise Exception('More than one possible synthetic gesture marker found in '
- 'interaction_record %s.' % interaction_record.logical_name)
- return tir_module.TimelineInteractionRecord(interaction_record.logical_name,
+ 'interaction_record %s.' % interaction_record.label)
+ return tir_module.TimelineInteractionRecord(interaction_record.label,
gesture_events[0].start,
gesture_events[0].end)
« no previous file with comments | « no previous file | tools/perf/measurements/smoothness_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698