OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/tracing/trace-event.h" | 5 #include "src/tracing/trace-event.h" |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
| 9 // A global flag used as a shortcut to check for the |
| 10 // v8.runtime category due to its high frequency use. |
| 11 TRACE_EVENT_API_ATOMIC_BYTE g_runtime_calls_trace_enabled = 0; |
| 12 |
9 namespace v8 { | 13 namespace v8 { |
10 namespace internal { | 14 namespace internal { |
11 namespace tracing { | 15 namespace tracing { |
12 | 16 |
13 v8::Platform* TraceEventHelper::GetCurrentPlatform() { | 17 v8::Platform* TraceEventHelper::GetCurrentPlatform() { |
14 return v8::internal::V8::GetCurrentPlatform(); | 18 return v8::internal::V8::GetCurrentPlatform(); |
15 } | 19 } |
16 | 20 |
17 } // namespace tracing | 21 } // namespace tracing |
18 } // namespace internal | 22 } // namespace internal |
19 } // namespace v8 | 23 } // namespace v8 |
OLD | NEW |