summaryrefslogtreecommitdiff
path: root/perfprofd/perf_profile.proto
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2015-09-03 15:16:04 -0400
committerThan McIntosh <thanm@google.com>2015-09-08 08:22:48 -0400
commit8c7c7db1f1a23ab0c575cc217bed6b45f42b9ba5 (patch)
treec4cf18424bb346538335e92a245db7831d265a96 /perfprofd/perf_profile.proto
parentb57eb67b373f9d2ba27d9ca7d75c27e4c245c687 (diff)
downloadextras-8c7c7db1f1a23ab0c575cc217bed6b45f42b9ba5.tar.gz
Support for additional profile annotations.
Includes "device booting", "on charger", and cpu utilization. Prototype version of "camera active" (not yet enabled). Also in this patch, separate out the code to read perfprofd's config file and place into a separate source file. Change-Id: I04d65c406fd41f26a509983f08658991e8f1d422
Diffstat (limited to 'perfprofd/perf_profile.proto')
-rw-r--r--perfprofd/perf_profile.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/perfprofd/perf_profile.proto b/perfprofd/perf_profile.proto
index 3932a162..2f60e128 100644
--- a/perfprofd/perf_profile.proto
+++ b/perfprofd/perf_profile.proto
@@ -99,4 +99,19 @@ message AndroidPerfProfile {
// to first value from /proc/loadavg multiplied by 100 then
// converted to int32
optional int32 sys_load_average = 6;
+
+ // At the point when the profile was collected, was a camera active?
+ optional bool camera_active = 7;
+
+ // At the point when the profile was collected, was the device still booting?
+ optional bool booting = 8;
+
+ // At the point when the profile was collected, was the device plugged into
+ // a charger?
+ optional bool on_charger = 9;
+
+ // CPU utilization measured prior to profile collection (expressed as
+ // 100 minus the idle percentage).
+ optional int32 cpu_utilization = 10;
+
}