Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: include/v8-platform.h

Issue 2436273002: [Tracing] Implement TracingCategoryObserver. (Closed)
Patch Set: fix compilation error Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | src/d8.cc » ('j') | src/flag-definitions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-platform.h
diff --git a/include/v8-platform.h b/include/v8-platform.h
index e11567488b6a3ca45780d52d11d6d1b3696b44ba..01c110d6b42f43680b674134864c9a5980970df8 100644
--- a/include/v8-platform.h
+++ b/include/v8-platform.h
@@ -207,6 +207,19 @@ class Platform {
virtual void OnTraceDisabled() = 0;
};
+ class TracingFlag {
+ public:
+ enum Mode {
+ ENABLED_BY_NATIVE = 1 << 0,
+ ENABLED_BY_TRACING = 1 << 1,
+ };
+ static std::unique_ptr<TracingFlag> Create();
+ virtual ~TracingFlag() = default;
+
+ protected:
+ TracingFlag() = default;
+ };
+
/** Adds tracing state change observer. */
virtual void AddTraceStateObserver(TraceStateObserver*) {}
« no previous file with comments | « BUILD.gn ('k') | src/d8.cc » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698