# Copyright 2025 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. query { id: "heap_total" table { table_name: "heap_total" module_name: "sql_packages.queries.heap_total" column_names: "count" column_names: "bytes" column_names: "reachable_count" column_names: "reachable_bytes" } } # The total number of objects on the heap, including unreachable objects that # will be cleaned next GC. metric_spec: { id: "cuj.common-metrics.heap_total_count" value: "count" polarity: LOWER_IS_BETTER query: { inner_query_id: "heap_total" } } # The total size of objects on the heap, including unreachable objects that will # be cleaned next GC. metric_spec: { id: "cuj.common-metrics.heap_total_bytes" value: "bytes" polarity: LOWER_IS_BETTER query: { inner_query_id: "heap_total" } } # The total number of objects on the heap, includes only obejcts reachable from # a GC root. metric_spec: { id: "cuj.common-metrics.heap_total_reachable_count" value: "reachable_count" polarity: LOWER_IS_BETTER query: { inner_query_id: "heap_total" } } # The total size of objects on the heap, includes only obejcts reachable from a # GC root. metric_spec: { id: "cuj.common-metrics.heap_total_reachable_bytes" value: "reachable_bytes" polarity: LOWER_IS_BETTER query: { inner_query_id: "heap_total" } }