1-- 2-- Copyright 2020 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 16SELECT 17 ( 18 SELECT COUNT(*) FROM memory_snapshot 19 ) AS total_snapshots, 20 ( 21 SELECT COUNT(*) FROM process 22 ) AS total_processes, 23 ( 24 SELECT COUNT(*) FROM process_memory_snapshot 25 ) AS total_process_snapshots, 26 ( 27 SELECT COUNT(*) FROM memory_snapshot_node 28 ) AS total_nodes, 29 ( 30 SELECT COUNT(*) FROM memory_snapshot_edge 31 ) AS total_edges, 32 ( 33 SELECT COUNT(DISTINCT args.id) 34 FROM args 35 INNER JOIN memory_snapshot_node 36 ON args.arg_set_id = memory_snapshot_node.arg_set_id 37 ) AS total_node_args, 38 ( 39 SELECT COUNT(*) FROM profiler_smaps 40 INNER JOIN memory_snapshot ON timestamp = ts 41 ) AS total_smaps 42