OLD | NEW |
(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 |
OLD | NEW |