1-- 2-- Copyright 2020 The Android Open Source Project 3-- 4-- Licensed under the Apache License, Version 2.0 (the 'License'); 5-- you may not use this file except in compliance with the License. 6-- You may obtain a copy of the License at 7-- 8-- https://www.apache.org/licenses/LICENSE-2.0 9-- 10-- Unless required by applicable law or agreed to in writing, software 11-- distributed under the License is distributed on an 'AS IS' BASIS, 12-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13-- See the License for the specific language governing permissions and 14-- limitations under the License. 15-- 16-- This metric takes each flow event in a InputLatency::GestureScrollUpdate and 17-- and computes the time from the ancestor_end of the current flow to the 18-- ancestor_ts of the next flow event. This is a reasonable approximation of the 19-- time we waited for the next step in the critical flow to start. 20 21-- Provides the scroll_flow_event table which gives us all the flow events with 22-- associated GestureScrollUpdate events we care about and labels them janky or 23-- not. 24SELECT RUN_METRIC('chrome/gesture_flow_event_queuing_delay.sql', 25 'prefix', 'scroll', 26 'id_field', 'gesture_scroll_id'); 27