OSDN Git Service

Perfprofd: Add compression to config proto
authorAndreas Gampe <agampe@google.com>
Wed, 28 Mar 2018 22:51:33 +0000 (15:51 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 29 Mar 2018 16:47:46 +0000 (09:47 -0700)
(cherry picked from commit 28a379f08c7e683689b1b96f1fe1a8e65611abec)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a
Change-Id: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a

perfprofd/binder_interface/perfprofd_binder.cc
perfprofd/binder_interface/perfprofd_config.proto

index 6667ca5..eeb5360 100644 (file)
@@ -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);
index bb7b52d..c25aa93 100644 (file)
@@ -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;
 };