diff --git a/src/bitdrift_public/protobuf/workflow/v1/workflow_command.proto b/src/bitdrift_public/protobuf/workflow/v1/workflow_command.proto index 0d91b04..16f5480 100644 --- a/src/bitdrift_public/protobuf/workflow/v1/workflow_command.proto +++ b/src/bitdrift_public/protobuf/workflow/v1/workflow_command.proto @@ -579,6 +579,45 @@ enum WellKnownCommandType { } ] }]; + HEAP_PROFILE_TRACE = 13 [(well_known_command_options) = { + key: "heap_profile_trace" + description: "Captures a Perfetto heap profile of the application's process." + availability: { + supported_platforms: [ + { + platform: ANDROID + min_os_version: "15" + min_config_version: 52 + } + ] + } + argument_definitions: [ + { + name: "duration_ms" + type: INT64 + description: "How long to profile, in milliseconds." + default_value: {sint_data: 5000} + }, + { + name: "buffer_size_kb" + type: INT64 + description: "Trace buffer size in KB." + default_value: {sint_data: 8192} + }, + { + name: "sampling_interval_bytes" + type: INT64 + description: "Mean number of bytes allocated between two recorded samples." + default_value: {sint_data: 65536} + }, + { + name: "track_java_allocations" + type: BOOL + description: "Records Java heap allocations instead of native ones; a profile records one or the other." + default_value: {bool_data: true} + } + ] + }]; } // Selects one locally registered or built-in workflow command.