@@ -660,6 +660,25 @@ class TickInfo {
660660 AliasedBuffer<uint8_t , v8::Uint8Array> fields_;
661661};
662662
663+ class TrackingTraceStateObserver :
664+ public v8::TracingController::TraceStateObserver {
665+ public:
666+ explicit TrackingTraceStateObserver (Environment* env) : env_(env) {}
667+
668+ void OnTraceEnabled () override {
669+ UpdateTraceCategoryState ();
670+ }
671+
672+ void OnTraceDisabled () override {
673+ UpdateTraceCategoryState ();
674+ }
675+
676+ private:
677+ void UpdateTraceCategoryState ();
678+
679+ Environment* env_;
680+ };
681+
663682class Environment {
664683 public:
665684 Environment (const Environment&) = delete ;
@@ -979,25 +998,6 @@ class Environment {
979998 // This needs to be available for the JS-land setImmediate().
980999 void ToggleImmediateRef (bool ref);
9811000
982- class TrackingTraceStateObserver :
983- public v8::TracingController::TraceStateObserver {
984- public:
985- explicit TrackingTraceStateObserver (Environment* env) : env_(env) {}
986-
987- void OnTraceEnabled () override {
988- UpdateTraceCategoryState ();
989- }
990-
991- void OnTraceDisabled () override {
992- UpdateTraceCategoryState ();
993- }
994-
995- private:
996- void UpdateTraceCategoryState ();
997-
998- Environment* env_;
999- };
1000-
10011001 class ShouldNotAbortOnUncaughtScope {
10021002 public:
10031003 explicit inline ShouldNotAbortOnUncaughtScope (Environment* env);
0 commit comments