• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 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 *      http://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 */
16syntax = "proto2";
17package perfetto.protos;
18
19import "protos/perfetto/metrics/android/process_metadata.proto";
20
21message JavaHeapHistogram {
22  // Next id: 5
23  message TypeCount {
24    optional string type_name = 1;
25    optional string category = 4;
26
27    optional uint32 obj_count = 2;
28    optional uint32 reachable_obj_count = 3;
29  }
30
31  message Sample {
32    optional int64 ts = 1;
33    repeated TypeCount type_count = 2;
34  }
35
36  // Heap stats per process. One sample per dump (with continuous dump you can
37  // have more samples differentiated by ts).
38  message InstanceStats {
39    optional uint32 upid = 1;
40    optional AndroidProcessMetadata process = 2;
41    repeated Sample samples = 3;
42  }
43
44  repeated InstanceStats instance_stats = 1;
45}
46