Remove unused methods from RuntimeAgent (#54261)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54261

# Changelog: [Internal]

These are actually unused and we've changed the approach - CDP agents do not control tracing status.

Reviewed By: huntie

Differential Revision: D85436029

fbshipit-source-id: faa79bbda92c0e0c55f26389bfe0c6efcf9e76c8
This commit is contained in:
Ruslan Lesiutin
2025-10-27 08:32:46 -07:00
committed by meta-codesync[bot]
parent 796d182d89
commit 8253a34883
2 changed files with 0 additions and 27 deletions
@@ -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(
@@ -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_;