blob: c7dbf4d8c09aabfd8ad9494f879ab8e18b0600b6 [file] [log] [blame]
Yi Jinb44f7d42017-07-21 12:12:59 -07001/*
2 * Copyright (C) 2016 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 = "proto3";
18
19option java_multiple_files = true;
20option java_outer_classname = "ProcrankProto";
21
22package android.os;
23
24//Memory usage of running processes
25message Procrank {
26 // Currently running process
27 repeated ProcessProto processes = 1;
28
29 // Summary
30 SummaryProto summary = 2;
31}
32
33// Next Tag: 11
34message ProcessProto {
35 // ID of the process
36 int32 pid = 1;
37
38 // virtual set size, unit KB
39 int64 vss = 2;
40
41 // resident set size, unit KB
42 int64 rss = 3;
43
44 // proportional set size, unit KB
45 int64 pss = 4;
46
47 // unique set size, unit KB
48 int64 uss = 5;
49
50 // swap size, unit KB
51 int64 swap = 6;
52
53 // proportional swap size, unit KB
54 int64 pswap = 7;
55
56 // unique swap size, unit KB
57 int64 uswap = 8;
58
59 // zswap size, unit KB
60 int64 zswap = 9;
61
62 // process command
63 string cmdline = 10;
64}
65
66// Next Tag: 3
67message SummaryProto {
68 ProcessProto total = 1;
69
70 ZramProto zram = 2;
71
72 RamProto ram = 3;
73}
74
75// TODO: sync on how to use these values
76message ZramProto {
77 string raw_text = 1;
78}
79
80message RamProto {
81 string raw_text = 1;
82}