diff --git a/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.cpp b/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.cpp index 41d81767df35..888d27936e90 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.cpp +++ b/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.cpp @@ -385,8 +385,7 @@ class HostAgent::Impl final { return fuseboxClientType_ == FuseboxClientType::Fusebox; } - void emitExternalTracingProfile( - tracing::HostTracingProfile tracingProfile) const { + void emitExternalTracingProfile(tracing::HostTracingProfile tracingProfile) { assert( hasFuseboxClientConnected() && "Attempted to emit a trace recording to a non-Fusebox client"); @@ -543,11 +542,11 @@ bool HostAgent::hasFuseboxClientConnected() const { } void HostAgent::emitExternalTracingProfile( - tracing::HostTracingProfile tracingProfile) const { + tracing::HostTracingProfile tracingProfile) { impl_->emitExternalTracingProfile(std::move(tracingProfile)); } -void HostAgent::emitSystemStateChanged(bool isSingleHost) const { +void HostAgent::emitSystemStateChanged(bool isSingleHost) { impl_->emitSystemStateChanged(isSingleHost); } diff --git a/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.h b/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.h index 8789cb5d32c1..3046a7788c96 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.h +++ b/packages/react-native/ReactCommon/jsinspector-modern/HostAgent.h @@ -77,13 +77,13 @@ class HostAgent final { * Emits the HostTracingProfile that was captured externally, not via the * CDP-initiated request. */ - void emitExternalTracingProfile(tracing::HostTracingProfile tracingProfile) const; + void emitExternalTracingProfile(tracing::HostTracingProfile tracingProfile); /** * Emits a system state changed event when the number of ReactHost instances * changes. */ - void emitSystemStateChanged(bool isSingleHost) const; + void emitSystemStateChanged(bool isSingleHost); private: // We use the private implementation idiom to ensure this class has the same diff --git a/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.cpp b/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.cpp index e34ca99bfad2..0e3cca677f86 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.cpp +++ b/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.cpp @@ -111,8 +111,7 @@ class HostTargetSession { return hostAgent_.hasFuseboxClientConnected(); } - void emitHostTracingProfile( - tracing::HostTracingProfile tracingProfile) const { + void emitHostTracingProfile(tracing::HostTracingProfile tracingProfile) { hostAgent_.emitExternalTracingProfile(std::move(tracingProfile)); } @@ -384,7 +383,7 @@ bool HostTarget::hasActiveSessionWithFuseboxClient() const { } void HostTarget::emitTracingProfileForFirstFuseboxClient( - tracing::HostTracingProfile tracingProfile) const { + tracing::HostTracingProfile tracingProfile) { bool emitted = false; sessions_.forEach([&](HostTargetSession& session) { if (emitted) { diff --git a/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.h b/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.h index aed1396b14e6..b1640f31a473 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.h +++ b/packages/react-native/ReactCommon/jsinspector-modern/HostTarget.h @@ -363,7 +363,7 @@ class JSINSPECTOR_EXPORT HostTarget : public EnableExecutorFromThis * * @see \c hasActiveFrontendSession */ - void emitTracingProfileForFirstFuseboxClient(tracing::HostTracingProfile tracingProfile) const; + void emitTracingProfileForFirstFuseboxClient(tracing::HostTracingProfile tracingProfile); /** * An endpoint for the Host to report frame timings that will be recorded if and only if there is currently an active diff --git a/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.cpp b/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.cpp index 3fc0957c9010..4a876eb1b02d 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.cpp +++ b/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.cpp @@ -120,14 +120,14 @@ bool TracingAgent::handleRequest(const cdp::PreparsedRequest& req) { } void TracingAgent::emitExternalHostTracingProfile( - tracing::HostTracingProfile tracingProfile) const { + tracing::HostTracingProfile tracingProfile) { frontendChannel_( cdp::jsonNotification("ReactNativeApplication.traceRequested")); emitHostTracingProfile(std::move(tracingProfile)); } void TracingAgent::emitHostTracingProfile( - tracing::HostTracingProfile tracingProfile) const { + tracing::HostTracingProfile tracingProfile) { auto dataCollectedCallback = [this](folly::dynamic&& eventsChunk) { frontendChannel_( cdp::jsonNotification( diff --git a/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.h b/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.h index d0f474f1234b..3b2a63259898 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.h +++ b/packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.h @@ -44,7 +44,7 @@ class TracingAgent { /** * Emits the HostTracingProfile that was stashed externally by the HostTarget. */ - void emitExternalHostTracingProfile(tracing::HostTracingProfile tracingProfile) const; + void emitExternalHostTracingProfile(tracing::HostTracingProfile tracingProfile); private: /** @@ -60,7 +60,7 @@ class TracingAgent { * Emits captured HostTracingProfile in a series of * Tracing.dataCollected events, followed by a Tracing.tracingComplete event. */ - void emitHostTracingProfile(tracing::HostTracingProfile tracingProfile) const; + void emitHostTracingProfile(tracing::HostTracingProfile tracingProfile); }; } // namespace facebook::react::jsinspector_modern