mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia] Remove "CreateTraceProvider" trace event (flutter/engine#17423)
Since the trace provider hasn't been created yet, it is not possible to trace the creation of a trace provider using a TRACE_DURATION event (the trace enabled and category check will always fail). While this isn't causing any urgent problems, remove it to set a good example for other clients of tracing that might happen to reference this code.
This commit is contained in:
parent
6464f4eb97
commit
afb66ed5a6
@ -36,7 +36,6 @@ int main(int argc, const char** argv) {
|
||||
|
||||
std::unique_ptr<trace::TraceProviderWithFdio> provider;
|
||||
{
|
||||
TRACE_DURATION("dart", "CreateTraceProvider");
|
||||
bool already_started;
|
||||
// Use CreateSynchronously to prevent loss of early events.
|
||||
trace::TraceProviderWithFdio::CreateSynchronously(
|
||||
|
||||
@ -17,7 +17,6 @@ int main(int argc, char const* argv[]) {
|
||||
|
||||
std::unique_ptr<trace::TraceProviderWithFdio> provider;
|
||||
{
|
||||
TRACE_DURATION("flutter", "CreateTraceProvider");
|
||||
bool already_started;
|
||||
// Use CreateSynchronously to prevent loss of early events.
|
||||
trace::TraceProviderWithFdio::CreateSynchronously(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user