OSDN Git Service

Perfprofd: Add support for sampling frequency
[android-x86/system-extras.git] / perfprofd / binder_interface / perfprofd_config.proto
index ae3aee9..37c369c 100644 (file)
@@ -33,8 +33,12 @@ message ProfilingConfig {
 
   // Desired sampling period (passed to perf -c option). Small
   // sampling periods can perturb the collected profiles, so enforce
-  // min/max.
+  // min/max. A value of 0 means perf default. sampling_frequency
+  // takes priority.
   optional uint32 sampling_period = 7;
+  // Desired sampling frequency (passed to perf -f option). A value of 0
+  // means using sampling_period or default.
+  optional uint32 sampling_frequency = 22;
   // Length of time to collect samples (number of seconds for 'perf
   // record -a' run).
   optional uint32 sample_duration_in_s = 8;
@@ -73,4 +77,10 @@ message ProfilingConfig {
 
   // Whether to use a symbolizer on-device.
   optional bool use_elf_symbolizer = 19;
+
+  // 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;
 };