Debian Codegraph @

core/proto/android/os/cpu_usage.proto

raw
1 /*
2 * Copyright (C) 2019 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
17 syntax = "proto2";
18
19 option java_multiple_files = true;
20
21 import "frameworks/base/core/proto/android/privacy.proto";
22
23 package android.os;
24
25 message CpuUsageProto {
26 option (android.msg_privacy).dest = DEST_AUTOMATIC;
27
28 message Load {
29 option (android.msg_privacy).dest = DEST_AUTOMATIC;
30
31 optional float load1 = 1;
32 optional float load5 = 2;
33 optional float load15 = 3;
34 }
35 optional Load current_load = 1;
36
37 optional int64 now = 2;
38 optional int64 last_sample_time = 3;
39 optional int64 current_sample_time = 4;
40 optional int64 last_sample_real_time = 5;
41 optional int64 current_sample_real_time = 6;
42 optional int64 last_sample_wall_time = 7;
43 optional int64 current_sample_wall_time = 8;
44
45 optional int32 total_user_time = 9;
46 optional int32 total_system_time = 10;
47 optional int32 total_iowait_time = 11;
48 optional int32 total_irq_time = 12;
49 optional int32 total_soft_irq_time = 13;
50 optional int32 total_idle_time = 14;
51 optional int32 total_time = 15;
52
53 message Stat {
54 option (android.msg_privacy).dest = DEST_AUTOMATIC;
55
56 optional int32 uid = 1;
57 optional int32 pid = 2;
58 optional string name = 3;
59 optional bool added = 4;
60 optional bool removed = 5;
61 optional int32 uptime = 6;
62 optional int32 user_time = 7;
63 optional int32 system_time = 8;
64 optional int32 minor_faults = 9;
65 optional int32 major_faults = 10;
66 optional int32 parent_pid = 11;
67 }
68 repeated Stat processes = 16;
69
70 // Next tag: 17
71 }