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

Side by Side Diff: base/trace_event/trace_event.cc

Issue 2272703002: Move AddTraceEvent out-of-line (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@before-sharing
Patch Set: Add missing BASE_EXPORT Created 4 years, 4 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 | « base/trace_event/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
(Empty)
1 // Copyright (c) 2016 The Chromium 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 #include "base/trace_event/trace_event.h"
6
7 namespace trace_event_internal {
8
9 base::trace_event::TraceEventHandle AddTraceEvent(
10 char phase,
11 const unsigned char* category_group_enabled,
12 const char* name,
13 const char* scope,
14 unsigned long long id,
15 unsigned int flags,
16 unsigned long long bind_id) {
17 const int thread_id = static_cast<int>(base::PlatformThread::CurrentId());
18 const base::TimeTicks now = base::TimeTicks::Now();
19 return AddTraceEventWithThreadIdAndTimestamp(phase, category_group_enabled,
20 name, scope, id, thread_id, now,
21 flags, bind_id);
22 }
23
24 } // namespace trace_event_internal
OLDNEW
« no previous file with comments | « base/trace_event/trace_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698