Add RSS high-water mark in kilobytes

The new field will be used to reduce the upload size of RSS HWM metric.
Single int32 instead of int64.

Keep both fields populated on device for backwards compatibility.

Bug: 139269772
Test: atest MemoryStatUtilTest
Change-Id: Iea850a0baceabe07586147955fcfd11c46f8ac30
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto
index ae751ce..fe3c3d5 100644
--- a/cmds/statsd/src/atoms.proto
+++ b/cmds/statsd/src/atoms.proto
@@ -4094,9 +4094,13 @@
     // Provided by ActivityManagerService or read from /proc/PID/cmdline.
     optional string process_name = 2;
 
+    // Deprecated: use rss_high_water_mark_in_kilobytes instead. This field is
+    // computed by converting kilobytes to bytes.
+    optional int64 rss_high_water_mark_in_bytes = 3 [deprecated = true];
+
     // RSS high-water mark. Peak RSS usage of the process. Read from the VmHWM field in
     // /proc/PID/status.
-    optional int64 rss_high_water_mark_in_bytes = 3;
+    optional int32 rss_high_water_mark_in_kilobytes = 4;
 }
 
 /*