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

Side by Side Diff: src/tracing/trace-event.cc

Issue 2063853002: Reland: Add a trace-event for each runtime-stats timer (CL 2052523002) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: The reland fix: Use an atomic variable Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/tracing/trace-event.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « src/tracing/trace-event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698