| Index: base/trace_event/trace_event.cc
|
| diff --git a/base/trace_event/trace_event.cc b/base/trace_event/trace_event.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..41493cea2f22f82fabfc10132f7cc010c272ff98
|
| --- /dev/null
|
| +++ b/base/trace_event/trace_event.cc
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/trace_event/trace_event.h"
|
| +
|
| +namespace trace_event_internal {
|
| +
|
| +base::trace_event::TraceEventHandle AddTraceEvent(
|
| + char phase,
|
| + const unsigned char* category_group_enabled,
|
| + const char* name,
|
| + const char* scope,
|
| + unsigned long long id,
|
| + unsigned int flags,
|
| + unsigned long long bind_id) {
|
| + const int thread_id = static_cast<int>(base::PlatformThread::CurrentId());
|
| + const base::TimeTicks now = base::TimeTicks::Now();
|
| + return AddTraceEventWithThreadIdAndTimestamp(phase, category_group_enabled,
|
| + name, scope, id, thread_id, now,
|
| + flags, bind_id);
|
| +}
|
| +
|
| +} // namespace trace_event_internal
|
|
|