Skip to content

Commit

Permalink
[trace clients] Replace trace-provider with trace-provider-with-fdio
Browse files Browse the repository at this point in the history
PT-63

Change-Id: I9acd5aeba5f82e6d58ec324f0f64bf109a413410

Ported from Topaz tree.
  • Loading branch information
cbracken committed Jun 29, 2019
1 parent ffba2f6 commit 06b29ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions shell/platform/fuchsia/dart/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ int main(int argc, const char** argv) {

#if !defined(FUCHSIA_SDK)
syslog::InitLogger();
fbl::unique_ptr<trace::TraceProvider> provider;

std::unique_ptr<trace::TraceProviderWithFdio> provider;
{
TRACE_EVENT0("dart", "CreateTraceProvider");
bool already_started;
// Use CreateSynchronously to prevent loss of early events.
trace::TraceProvider::CreateSynchronously(loop.dispatcher(), "dart_runner",
&provider, &already_started);
trace::TraceProviderWithFdio::CreateSynchronously(
loop.dispatcher(), "dart_runner", &provider, &already_started);
}
#endif // !defined(FUCHSIA_SDK)

Expand Down
4 changes: 2 additions & 2 deletions shell/platform/fuchsia/flutter/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ int main(int argc, char const* argv[]) {
std::unique_ptr<async::Loop> loop(flutter_runner::MakeObservableLoop(true));

#if !defined(FUCHSIA_SDK)
fbl::unique_ptr<trace::TraceProvider> provider;
std::unique_ptr<trace::TraceProviderWithFdio> provider;
{
TRACE_DURATION("flutter", "CreateTraceProvider");
bool already_started;
// Use CreateSynchronously to prevent loss of early events.
trace::TraceProvider::CreateSynchronously(
trace::TraceProviderWithFdio::CreateSynchronously(
loop->dispatcher(), "flutter_runner", &provider, &already_started);
}
#endif
Expand Down

0 comments on commit 06b29ae

Please sign in to comment.