| 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 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| 11 namespace tracing { | 11 namespace tracing { |
| 12 | 12 |
| 13 // A global flag used as a shortcut to check for the | |
| 14 // v8.runtime category due to its high frequency use. | |
| 15 int kRuntimeCallsTracingEnabled = 0; | |
| 16 | |
| 17 v8::Platform* TraceEventHelper::GetCurrentPlatform() { | 13 v8::Platform* TraceEventHelper::GetCurrentPlatform() { |
| 18 return v8::internal::V8::GetCurrentPlatform(); | 14 return v8::internal::V8::GetCurrentPlatform(); |
| 19 } | 15 } |
| 20 | 16 |
| 21 } // namespace tracing | 17 } // namespace tracing |
| 22 } // namespace internal | 18 } // namespace internal |
| 23 } // namespace v8 | 19 } // namespace v8 |
| OLD | NEW |