• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--
2-- Copyright 2023 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
17-- Statsd atoms.
18--
19-- A subset of the slice table containing statsd atom instant events.
20--
21-- @column id,
22-- @column type,
23-- @column ts,
24-- @column dur,
25-- @column arg_set_id,
26-- @column thread_instruction_count,
27-- @column thread_instruction_delta,
28-- @column track_id,
29-- @column category,
30-- @column name,
31-- @column depth,
32-- @column stack_id,
33-- @column parent_stack_id,
34-- @column parent_id,
35-- @column thread_ts,
36-- @column thread_dur,
37CREATE VIEW android_statsd_atoms AS
38SELECT
39  slice.id AS id,
40  slice.type AS type,
41  slice.ts AS ts,
42  slice.dur AS dur,
43  slice.arg_set_id AS arg_set_id,
44  slice.thread_instruction_count AS thread_instruction_count,
45  slice.thread_instruction_delta AS thread_instruction_delta,
46  slice.track_id AS track_id,
47  slice.category AS category,
48  slice.name AS name,
49  slice.depth AS depth,
50  slice.stack_id AS stack_id,
51  slice.parent_stack_id AS parent_stack_id,
52  slice.parent_id AS parent_id,
53  slice.thread_ts AS thread_ts,
54  slice.thread_dur AS thread_dur
55FROM slice
56JOIN track ON slice.track_id = track.id
57WHERE
58  track.name = 'Statsd Atoms';
59
60
61