diff options
author | Andreas Gampe <agampe@google.com> | 2018-03-28 15:51:33 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2018-03-29 09:47:46 -0700 |
commit | a17563edb6132a87748380ce9f8b680f37c85ec7 (patch) | |
tree | fc1ab95bcaa4bfd22650b0e8714a358df39d2be2 | |
parent | 2a7b571d3216c83d025e47d6553be25a9159dd27 (diff) | |
download | extras-a17563edb6132a87748380ce9f8b680f37c85ec7.tar.gz |
Perfprofd: Add compression to config proto
(cherry picked from commit 28a379f08c7e683689b1b96f1fe1a8e65611abec)
Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a
Change-Id: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a
-rw-r--r-- | perfprofd/binder_interface/perfprofd_binder.cc | 1 | ||||
-rw-r--r-- | perfprofd/binder_interface/perfprofd_config.proto | 3 |
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; }; |