diff --git a/src/trace_processor/metrics/sql/android/jank/relevant_slices.sql b/src/trace_processor/metrics/sql/android/jank/relevant_slices.sql index 9c4331891a..536dea7505 100644 --- a/src/trace_processor/metrics/sql/android/jank/relevant_slices.sql +++ b/src/trace_processor/metrics/sql/android/jank/relevant_slices.sql @@ -67,6 +67,7 @@ WHERE -- Ignore child slice e.g. "Choreographer#doFrame - resynced to 1234 in 20.0ms" AND slice.name not GLOB '*resynced*' AND slice.dur > 0 + AND vsync > 0 AND (vsync >= begin_vsync OR begin_vsync is NULL) AND (vsync <= end_vsync OR end_vsync is NULL) -- In some malformed traces we see nested doFrame slices.