| 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)
|
|
|