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

Unified Diff: src/tracing/tracing-category-observer.h

Issue 2436273002: [Tracing] Implement TracingCategoryObserver. (Closed)
Patch Set: rebase 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 | « src/flag-definitions.h ('k') | src/tracing/tracing-category-observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tracing/tracing-category-observer.h
diff --git a/src/tracing/tracing-category-observer.h b/src/tracing/tracing-category-observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..5e463030bcadb59dbb75a34fb268a144f8d7fd7e
--- /dev/null
+++ b/src/tracing/tracing-category-observer.h
@@ -0,0 +1,27 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_TRACING_TRACING_CATEGORY_OBSERVER_H_
+#define V8_TRACING_TRACING_CATEGORY_OBSERVER_H_
+
+#include "include/v8-platform.h"
+#include "include/v8-tracing.h"
+
+namespace v8 {
+namespace tracing {
+
+class TracingCategoryObserverImpl : public TracingCategoryObserver,
+ public Platform::TraceStateObserver {
+ public:
+ TracingCategoryObserverImpl();
+ ~TracingCategoryObserverImpl();
+
+ // v8::Platform::TraceStateObserver
+ void OnTraceEnabled() final;
+ void OnTraceDisabled() final;
+};
+
+} // namespace tracing
+} // namespace v8
+#endif // V8_TRACING_TRACING_CATEGORY_OBSERVER_H_
« no previous file with comments | « src/flag-definitions.h ('k') | src/tracing/tracing-category-observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698