Skip to content

Commit 7616314

Browse files
authored
stdlib: _normalize_event_channel special case (#4965)
This change modifies the function _normalize_event_channel to treat this channel name `[Gesture Monitor] swipe-up`, which normalized should be the same. The old version returned `Monitor] swipe-up`.
1 parent 883ed23 commit 7616314

File tree

1 file changed

+3
-0
lines changed
  • src/trace_processor/perfetto_sql/stdlib/android

1 file changed

+3
-0
lines changed

src/trace_processor/perfetto_sql/stdlib/android/input.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ CREATE PERFETTO FUNCTION _normalize_event_channel(
282282
RETURNS STRING AS
283283
SELECT
284284
CASE
285+
-- '[Gesture Monitor] swipe-up' -> '[Gesture Monitor] swipe-up'
286+
WHEN $event_channel GLOB '[[]*] *'
287+
THEN $event_channel
285288
-- 'ccf6448 PopupWindow:b20fb4d' -> 'PopupWindow'
286289
WHEN $event_channel GLOB '* *:*'
287290
THEN trim(substr(str_split($event_channel, ':', 0), instr($event_channel, ' ') + 1))

0 commit comments

Comments
 (0)