mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
meta-codesync[bot]
parent
796d182d89
commit
8253a34883
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user