• 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 android.memory.heap_graph.helpers;
17
18INCLUDE PERFETTO MODULE android.memory.heap_graph.raw_dominator_tree;
19
20CREATE PERFETTO TABLE _heap_graph_dominator_path_hashes AS
21SELECT
22  *
23FROM _heap_graph_type_path_hash!((
24  SELECT id, idom_id AS parent_id
25  FROM _raw_heap_graph_dominator_tree
26));
27
28CREATE PERFETTO TABLE _heap_graph_dominator_path_hashes_aggregated AS
29SELECT
30  *
31FROM _heap_graph_path_hash_aggregate!(_heap_graph_dominator_path_hashes);
32
33CREATE PERFETTO TABLE _heap_graph_dominator_class_tree AS
34SELECT
35  *
36FROM _heap_graph_path_hashes_to_class_tree!(
37  _heap_graph_dominator_path_hashes_aggregated
38);
39