Home | History | Annotate | Download | only in os
      1 /*
      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 
     17 syntax = "proto2";
     18 package android.os;
     19 
     20 option java_multiple_files = true;
     21 
     22 import "frameworks/base/core/proto/android/privacy.proto";
     23 
     24 // Memory usage of running processes
     25 message ProcrankProto {
     26     option (android.msg_privacy).dest = DEST_AUTOMATIC;
     27 
     28     // Currently running process
     29     message Process {
     30         option (android.msg_privacy).dest = DEST_AUTOMATIC;
     31 
     32         // ID of the process
     33         optional int32 pid = 1;
     34 
     35         // virtual set size, unit KB
     36         optional int64 vss = 2;
     37 
     38         // resident set size, unit KB
     39         optional int64 rss = 3;
     40 
     41         // proportional set size, unit KB
     42         optional int64 pss = 4;
     43 
     44         // unique set size, unit KB
     45         optional int64 uss = 5;
     46 
     47         // swap size, unit KB
     48         optional int64 swap = 6;
     49 
     50         // proportional swap size, unit KB
     51         optional int64 pswap = 7;
     52 
     53         // unique swap size, unit KB
     54         optional int64 uswap = 8;
     55 
     56         // zswap size, unit KB
     57         optional int64 zswap = 9;
     58 
     59         // process command
     60         optional string cmdline = 10;
     61 
     62         // Next Tag: 11
     63     }
     64     repeated Process processes = 1;
     65 
     66     // Summary
     67     message Summary {
     68         option (android.msg_privacy).dest = DEST_AUTOMATIC;
     69 
     70         optional Process total = 1;
     71 
     72         // TODO: sync on how to use these values
     73         message Zram {
     74             option (android.msg_privacy).dest = DEST_AUTOMATIC;
     75 
     76             optional string raw_text = 1;
     77         }
     78         optional Zram zram = 2;
     79 
     80         message Ram {
     81             option (android.msg_privacy).dest = DEST_AUTOMATIC;
     82 
     83             optional string raw_text = 1;
     84         }
     85         optional Ram ram = 3;
     86 
     87         // Next Tag: 4
     88     }
     89     optional Summary summary = 2;
     90 }
     91