Change visibility of tracing methods for RuntimeTarget (#54281)

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

# Changelog: [Internal]

This is not used, nor required. The controller is the canonical way of using targets.

Reviewed By: huntie

Differential Revision: D85440639

fbshipit-source-id: 81702fed06a74dfa54b45689e7e304f63e4dd903
This commit is contained in:
Ruslan Lesiutin authored and meta-codesync[bot] committed 2025-11-06 04:25:36 -08:00
1 parent c726c27537
commit bc6fbfb0a8
1 file changed
+12 -13
@@ -207,19 +207,6 @@ class JSINSPECTOR_EXPORT RuntimeTarget : public EnableExecutorFromThis<RuntimeTa
*/
std::shared_ptr<RuntimeTracingAgent> createTracingAgent(tracing::TraceRecordingState &state);
/**
* Start sampling profiler for a particular JavaScript runtime.
*/
void enableSamplingProfiler();
/**
* Stop sampling profiler for a particular JavaScript runtime.
*/
void disableSamplingProfiler();
/**
* Return recorded sampling profile for the previous sampling session.
*/
tracing::RuntimeSamplingProfile collectSamplingProfile();
private:
using Domain = RuntimeTargetController::Domain;
@@ -275,6 +262,18 @@ class JSINSPECTOR_EXPORT RuntimeTarget : public EnableExecutorFromThis<RuntimeTa
* session - HostTargetTraceRecording.
*/
std::weak_ptr<RuntimeTracingAgent> tracingAgent_;
/**
* Start sampling profiler for a particular JavaScript runtime.
*/
void enableSamplingProfiler();
/**
* Stop sampling profiler for a particular JavaScript runtime.
*/
void disableSamplingProfiler();
/**
* Return recorded sampling profile for the previous sampling session.
*/
tracing::RuntimeSamplingProfile collectSamplingProfile();
/**
* Adds a function with the given name on the runtime's global object, that