Wire up mojo tracing (flutter/engine#3047)

* Wire up to mojo::tracing::* infrastructure.

* Initialize tracing as early as possible.

* Make dependency specific to fuchsia.
This commit is contained in:
Thomas Voß 2016-09-21 21:18:27 +02:00 committed by Adam Barth
parent 70e14cacb6
commit 2a657e55a9
2 changed files with 5 additions and 7 deletions

View File

@ -29,6 +29,10 @@ source_set("glue") {
deps += [
"//lib/mtl",
]
public_deps = [
"//mojo/services/tracing/cpp",
]
} else {
sources += [
"drain_data_pipe_job_base.cc",

View File

@ -3,13 +3,7 @@
// found in the LICENSE file.
#if defined(__Fuchsia__)
#define TRACE_EVENT0(a, b)
#define TRACE_EVENT1(a, b, c, d)
#define TRACE_EVENT2(a, b, c, d, e, f)
#define TRACE_EVENT_ASYNC_BEGIN0(a, b, c)
#define TRACE_EVENT_ASYNC_END0(a, b, c)
#define TRACE_EVENT_ASYNC_BEGIN1(a, b, c, d, e)
#define TRACE_EVENT_ASYNC_END1(a, b, c, d, e)
#include "mojo/services/tracing/cpp/macros.h"
#else
#include "base/trace_event/trace_event.h"
#endif // defined(__Fuchsia__)