File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
packages/react-native/ReactCommon/jsinspector-modern Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class RuntimeAgent final {
9999 * Lifetime of this agent is bound to the lifetime of the Tracing session -
100100 * HostTargetTraceRecording and to the lifetime of the RuntimeTarget.
101101 */
102- class RuntimeTracingAgent : tracing::TargetTracingAgent {
102+ class RuntimeTracingAgent : public tracing ::TargetTracingAgent {
103103 public:
104104 explicit RuntimeTracingAgent (tracing::TraceRecordingState &state, RuntimeTargetController &targetController);
105105
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ class TargetTracingAgent {
2727 (void )state_;
2828 }
2929
30+ bool isRunningInBackgroundMode () {
31+ return state_.mode == tracing::Mode::Background;
32+ }
33+
3034 protected:
3135 TraceRecordingState &state_;
3236};
You can’t perform that action at this time.
0 commit comments