1-- Copyright 2023 The Android Open Source Project 2-- 3-- Licensed under the Apache License, Version 2.0 (the "License"); 4-- you may not use this file except in compliance with the License. 5-- You may obtain a copy of the License at 6-- 7-- https://www.apache.org/licenses/LICENSE-2.0 8-- 9-- Unless required by applicable law or agreed to in writing, software 10-- distributed under the License is distributed on an "AS IS" BASIS, 11-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12-- See the License for the specific language governing permissions and 13-- limitations under the License. 14 15-- Screenshot slices, used in perfetto UI. 16CREATE PERFETTO TABLE android_screenshots ( 17 -- Id of the screenshot slice. 18 id ID(slice.id), 19 -- Slice timestamp. 20 ts TIMESTAMP, 21 -- Slice duration, should be typically 0 since screeenshot slices are of instant 22 -- type. 23 dur DURATION, 24 -- Slice name. 25 name STRING 26) AS 27SELECT 28 slice.id AS id, 29 slice.ts AS ts, 30 slice.dur AS dur, 31 slice.name AS name 32FROM slice 33JOIN args 34 USING (arg_set_id) 35WHERE 36 slice.name = "Screenshot" 37 AND slice.category = "android_screenshot" 38 AND args.key = "screenshot.jpg_image"; 39