diff options
| author | 2018-01-24 16:49:15 +0000 | |
|---|---|---|
| committer | 2018-01-24 16:49:15 +0000 | |
| commit | 1a68be0f0defb679a246352c30921bb011f2d5cb (patch) | |
| tree | 27c1524aabf6c310995d70a74a7c833f6cfdae9b | |
| parent | 60c9ef4c98c34d2ef8c28ef49c1fd5e2e6fee1eb (diff) | |
| parent | 27572b9a19b5f2ed8b8cc0e2a736892be6dfafc3 (diff) | |
Merge "Simplify the memory metrics atoms."
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 7f0ebb45e2d7..77b156f81e1a 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -104,7 +104,7 @@ message Atom { CpuTimePerUidFreq cpu_time_per_uid_freq = 10010; WifiActivityEnergyInfo wifi_activity_energy_info = 10011; ModemActivityInfo modem_activity_info = 10012; - MemoryStat memory_stat = 10013; + ProcessMemoryStat process_memory_stat = 10013; CpuSuspendTime cpu_suspend_time = 10014; CpuIdleTime cpu_idle_time = 10015; CpuActiveTime cpu_active_time = 10016; @@ -1233,12 +1233,12 @@ message ModemActivityInfo { /* * Logs the memory stats for a process */ -message MemoryStat { +message ProcessMemoryStat { // The uid if available. -1 means not available. optional int32 uid = 1; - // The app package name. - optional string pkg_name = 2; + // The process name. + optional string process_name = 2; // # of page-faults optional int64 pgfault = 3; @@ -1259,19 +1259,20 @@ message LmkEventOccurred { // The uid if available. -1 means not available. optional int32 uid = 1; - // The app package name. - optional string pkg_name = 2; + // The process name. + optional string process_name = 2; // oom adj score. optional int32 oom_score = 3; - // Used as start/stop boundaries for the event - enum State { - UNKNOWN = 0; - START = 1; - END = 2; - } - optional State state = 4; + // # of page-faults + optional int64 pgfault = 4; + + // # of major page-faults + optional int64 pgmajfault = 5; + + // RSS+CACHE(+SWAP) + optional int64 usage_in_bytes = 6; } /* |