1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package android.os;
option java_multiple_files = true;
import "frameworks/base/core/proto/android/privacy.proto";
// Memory usage of running processes
message ProcrankProto {
option (android.msg_privacy).dest = DEST_AUTOMATIC;
// Currently running process
message Process {
option (android.msg_privacy).dest = DEST_AUTOMATIC;
// ID of the process
optional int32 pid = 1;
// virtual set size, unit KB
optional int64 vss = 2;
// resident set size, unit KB
optional int64 rss = 3;
// proportional set size, unit KB
optional int64 pss = 4;
// unique set size, unit KB
optional int64 uss = 5;
// swap size, unit KB
optional int64 swap = 6;
// proportional swap size, unit KB
optional int64 pswap = 7;
// unique swap size, unit KB
optional int64 uswap = 8;
// zswap size, unit KB
optional int64 zswap = 9;
// process command
optional string cmdline = 10;
// Next Tag: 11
}
repeated Process processes = 1;
// Summary
message Summary {
option (android.msg_privacy).dest = DEST_AUTOMATIC;
optional Process total = 1;
// TODO: sync on how to use these values
message Zram {
option (android.msg_privacy).dest = DEST_AUTOMATIC;
optional string raw_text = 1;
}
optional Zram zram = 2;
message Ram {
option (android.msg_privacy).dest = DEST_AUTOMATIC;
optional string raw_text = 1;
}
optional Ram ram = 3;
// Next Tag: 4
}
optional Summary summary = 2;
}
|