From 1c307f5860782ff84b11abb014d8c37beabefcae Mon Sep 17 00:00:00 2001 From: Sannidhya Chauhan Date: Thu, 22 Jan 2026 02:57:29 -0800 Subject: [PATCH] Add RPC to stop continuous profiling. PiperOrigin-RevId: 859516646 --- tsl/profiler/protobuf/profiler_service.proto | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tsl/profiler/protobuf/profiler_service.proto b/tsl/profiler/protobuf/profiler_service.proto index 0382e763b..36cf8ce67 100644 --- a/tsl/profiler/protobuf/profiler_service.proto +++ b/tsl/profiler/protobuf/profiler_service.proto @@ -20,6 +20,9 @@ service ProfilerService { // Starts a continuous profiling session. rpc StartContinuousProfiling(ProfileRequest) returns (ContinuousProfilingResponse) {} + // Stops an ongoing continuous profiling session. + rpc StopContinuousProfiling(StopContinuousProfilingRequest) + returns (StopContinuousProfilingResponse) {} // Gets a snapshot of an ongoing profiling session. rpc GetSnapshot(GetSnapshotRequest) returns (ProfileResponse) {} } @@ -108,6 +111,10 @@ message GetSnapshotRequest {} message ContinuousProfilingResponse {} +message StopContinuousProfilingRequest {} + +message StopContinuousProfilingResponse {} + // Next-ID: 4 message MonitorRequest { // Duration for which to profile between each update.