• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  -- Slice id.
18  id INT,
19  -- Slice timestamp.
20  ts INT,
21  -- Slice duration, should be typically 0 since screeenshot slices are of instant
22  -- type.
23  dur INT,
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 USING(arg_set_id)
34WHERE slice.name = "Screenshot"
35  AND slice.category = "android_screenshot"
36  AND args.key = "screenshot.jpg_image";
37