summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-03-29 18:26:21 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-03-29 18:26:21 +0000
commit918facacf5ccdf050162340712cb4fd9eca7d9d0 (patch)
tree0845e1f947216ae7332b2d6aa920ae63b47433ff
parentd56352cb1a7d152b7d76849d0edba71baea676d0 (diff)
parenta17563edb6132a87748380ce9f8b680f37c85ec7 (diff)
downloadextras-918facacf5ccdf050162340712cb4fd9eca7d9d0.tar.gz
Merge "Perfprofd: Add compression to config proto" into pi-dev
-rw-r--r--perfprofd/binder_interface/perfprofd_binder.cc1
-rw-r--r--perfprofd/binder_interface/perfprofd_config.proto3
2 files changed, 4 insertions, 0 deletions
diff --git a/perfprofd/binder_interface/perfprofd_binder.cc b/perfprofd/binder_interface/perfprofd_binder.cc
index 6667ca5e..eeb53602 100644
--- a/perfprofd/binder_interface/perfprofd_binder.cc
+++ b/perfprofd/binder_interface/perfprofd_binder.cc
@@ -346,6 +346,7 @@ Status PerfProfdNativeService::StartProfilingProtobuf(ProtoLoaderFn fn) {
CHECK_AND_COPY_FROM_PROTO(process)
CHECK_AND_COPY_FROM_PROTO(use_elf_symbolizer)
CHECK_AND_COPY_FROM_PROTO(send_to_dropbox)
+ CHECK_AND_COPY_FROM_PROTO(compress)
#undef CHECK_AND_COPY_FROM_PROTO
};
return StartProfiling(config_fn);
diff --git a/perfprofd/binder_interface/perfprofd_config.proto b/perfprofd/binder_interface/perfprofd_config.proto
index bb7b52d8..c25aa93b 100644
--- a/perfprofd/binder_interface/perfprofd_config.proto
+++ b/perfprofd/binder_interface/perfprofd_config.proto
@@ -76,4 +76,7 @@ message ProfilingConfig {
// Whether to send the result to dropbox.
optional bool send_to_dropbox = 20;
+
+ // If true, use libz to compress the output proto.
+ optional bool compress = 21;
};