• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--
2-- Copyright 2024 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
16INCLUDE PERFETTO MODULE viz.summary.slices;
17
18CREATE PERFETTO TABLE _process_track_summary_by_upid_and_name AS
19SELECT
20  upid,
21  name,
22  GROUP_CONCAT(id) AS track_ids,
23  COUNT() AS track_count
24FROM process_track
25JOIN _slice_track_summary USING (id)
26GROUP BY upid, name;
27
28CREATE PERFETTO TABLE _uid_track_track_summary_by_uid_and_name AS
29SELECT
30  uid,
31  name,
32  GROUP_CONCAT(id) AS track_ids,
33  COUNT() AS track_count
34FROM uid_track
35JOIN _slice_track_summary USING (id)
36GROUP BY uid, name;
37