# 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_drawable"
  table {
    table_name: "heap_drawable"
    module_name: "sql_packages.queries.heap_drawable"
    column_names: "count"
    column_names: "retained_bytes"
  }
}

# The number of android.graphics.drawable.Drawable instances.
metric_spec: {
  id: "cuj.common-metrics.heap_drawable_count"
  value: "count"
  query: {
    inner_query_id: "heap_drawable"
  }
}

# The retained size of drawable instances, includes native size.
metric_spec: {
  id: "cuj.common-metrics.heap_drawable_retained_bytes"
  value: "retained_bytes"
  query: {
    inner_query_id: "heap_drawable"
  }
}
