From 9023599fc3dd7694afa92ec00bd5b09500b9cfeb Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Mon, 29 Jan 2018 11:06:48 -0800 Subject: [PATCH] Split usage_in_bytes into following separate fields: 1. rss_in_bytes 2. cache_in_bytes 3. swap_in_bytes See: go/android-p-memory-metrics Bug: 72177881 Test: Manual Change-Id: I8d88aa24aac500b9e5cb4e40b9af9dab3af7113b --- cmds/statsd/src/atoms.proto | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 27fa67212af84..b32af027f2fd8 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -1214,8 +1214,14 @@ message AppStartMemoryStateCaptured { // # of major page-faults optional int64 pgmajfault = 5; - // RSS+CACHE(+SWAP) - optional int64 usage_in_bytes = 6; + // RSS + optional int64 rss_in_bytes = 6; + + // CACHE + optional int64 cache_in_bytes = 7; + + // SWAP + optional int64 swap_in_bytes = 8; } /* @@ -1237,8 +1243,14 @@ message ProcessMemoryState { // # of major page-faults optional int64 pgmajfault = 5; - // RSS+CACHE(+SWAP) - optional int64 usage_in_bytes = 6; + // RSS + optional int64 rss_in_bytes = 6; + + // CACHE + optional int64 cache_in_bytes = 7; + + // SWAP + optional int64 swap_in_bytes = 8; } /* @@ -1277,8 +1289,14 @@ message LmkKillOccurred { // # of major page-faults optional int64 pgmajfault = 5; - // RSS+CACHE(+SWAP) - optional int64 usage_in_bytes = 6; + // RSS + optional int64 rss_in_bytes = 6; + + // CACHE + optional int64 cache_in_bytes = 7; + + // SWAP + optional int64 swap_in_bytes = 8; } /*