xref: /aosp_15_r20/external/perfetto/protos/perfetto/metrics/android/rt_runtime_metric.proto (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1/*
2 * Copyright (C) 2022 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 */
16
17syntax = "proto2";
18
19package perfetto.protos;
20
21// measure max RT runtime and RT tasks running over 5ms.
22message AndroidRtRuntimeMetric {
23  message RtSlice {
24    // thread name
25    optional string tname = 1;
26    // timestamp
27    optional int64 ts = 2;
28    // runtime of RT task
29    optional int64 dur = 3;
30  }
31
32  // max runtime of RT tasks
33  optional int64 max_runtime = 1;
34  // how many RT tasks are over 5ms.
35  optional int64 over_5ms_count = 2;
36  // information for top 10 RT tasks
37  repeated RtSlice longest_rt_slices = 3;
38}
39
40