Skip to content

Commit dde2c24

Browse files
hoxyqmeta-codesync[bot]
authored andcommitted
Remove unused methods from RuntimeAgent
Summary: # Changelog: [Internal] These are actually unused and we've changed the approach - CDP agents do not control tracing status. Differential Revision: D85436029
1 parent 796d182 commit dde2c24

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,18 +146,6 @@ RuntimeAgent::~RuntimeAgent() {
146146
sessionState_.lastRuntimeAgentExportedState = getExportedState();
147147
}
148148

149-
void RuntimeAgent::enableSamplingProfiler() {
150-
targetController_.enableSamplingProfiler();
151-
}
152-
153-
void RuntimeAgent::disableSamplingProfiler() {
154-
targetController_.disableSamplingProfiler();
155-
}
156-
157-
tracing::RuntimeSamplingProfile RuntimeAgent::collectSamplingProfile() {
158-
return targetController_.collectSamplingProfile();
159-
}
160-
161149
#pragma mark - Tracing
162150

163151
RuntimeTracingAgent::RuntimeTracingAgent(

packages/react-native/ReactCommon/jsinspector-modern/RuntimeAgent.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,6 @@ class RuntimeAgent final {
8383
*/
8484
ExportedState getExportedState();
8585

86-
/**
87-
* Start sampling profiler for the corresponding RuntimeTarget.
88-
*/
89-
void enableSamplingProfiler();
90-
91-
/**
92-
* Stop sampling profiler for the corresponding RuntimeTarget.
93-
*/
94-
void disableSamplingProfiler();
95-
96-
/**
97-
* Return recorded sampling profile for the previous sampling session.
98-
*/
99-
tracing::RuntimeSamplingProfile collectSamplingProfile();
100-
10186
private:
10287
FrontendChannel frontendChannel_;
10388
RuntimeTargetController &targetController_;

0 commit comments

Comments
 (0)