mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
70e14cacb6
commit
2a657e55a9
@ -29,6 +29,10 @@ source_set("glue") {
|
||||
deps += [
|
||||
"//lib/mtl",
|
||||
]
|
||||
|
||||
public_deps = [
|
||||
"//mojo/services/tracing/cpp",
|
||||
]
|
||||
} else {
|
||||
sources += [
|
||||
"drain_data_pipe_job_base.cc",
|
||||
|
||||
@ -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__)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user