| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef V8_V8_TRACING_H_ | |
| 6 #define V8_V8_TRACING_H_ | |
| 7 | |
| 8 #include "v8.h" // NOLINT(build/include) | |
| 9 | |
| 10 namespace v8 { | |
| 11 namespace tracing { | |
| 12 | |
| 13 class V8_EXPORT TracingCategoryObserver { | |
| 14 public: | |
| 15 enum Mode { | |
| 16 ENABLED_BY_NATIVE = 1 << 0, | |
| 17 ENABLED_BY_TRACING = 1 << 1, | |
| 18 }; | |
| 19 static std::unique_ptr<TracingCategoryObserver> Create(); | |
| 20 virtual ~TracingCategoryObserver() = default; | |
| 21 | |
| 22 protected: | |
| 23 TracingCategoryObserver() = default; | |
| 24 }; | |
| 25 | |
| 26 } // namespace tracing | |
| 27 } // namespace v8 | |
| 28 | |
| 29 #endif // V8_V8_TRACING_H_ | |
| OLD | NEW |