diff --git a/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.cpp b/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.cpp index fe4adabf8fd..7631e2fea75 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.cpp +++ b/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.cpp @@ -146,18 +146,6 @@ RuntimeAgent::~RuntimeAgent() { sessionState_.lastRuntimeAgentExportedState = getExportedState(); } -void RuntimeAgent::enableSamplingProfiler() { - targetController_.enableSamplingProfiler(); -} - -void RuntimeAgent::disableSamplingProfiler() { - targetController_.disableSamplingProfiler(); -} - -tracing::RuntimeSamplingProfile RuntimeAgent::collectSamplingProfile() { - return targetController_.collectSamplingProfile(); -} - #pragma mark - Tracing RuntimeTracingAgent::RuntimeTracingAgent( diff --git a/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.h b/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.h index 5ebd2f9ffe0..7e0b62b442e 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.h +++ b/packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.h @@ -83,21 +83,6 @@ class RuntimeAgent final { */ ExportedState getExportedState(); - /** - * Start sampling profiler for the corresponding RuntimeTarget. - */ - void enableSamplingProfiler(); - - /** - * Stop sampling profiler for the corresponding RuntimeTarget. - */ - void disableSamplingProfiler(); - - /** - * Return recorded sampling profile for the previous sampling session. - */ - tracing::RuntimeSamplingProfile collectSamplingProfile(); - private: FrontendChannel frontendChannel_; RuntimeTargetController &targetController_;