From 7e38d5df1e6be47423c62f13964af0676fe82856 Mon Sep 17 00:00:00 2001 From: yuanhuihui Date: Wed, 11 Dec 2019 10:35:57 +0800 Subject: [PATCH 1/2] Fix missing timeline event of flutter engine's startup time see https://github.com/flutter/flutter/issues/46744 --- runtime/dart_vm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/dart_vm.cc b/runtime/dart_vm.cc index 652bf2804aca5..df925959982c8 100644 --- a/runtime/dart_vm.cc +++ b/runtime/dart_vm.cc @@ -417,7 +417,7 @@ DartVM::DartVM(std::shared_ptr vm_data, if (engine_main_enter_ts != 0) { Dart_TimelineEvent("FlutterEngineMainEnter", // label engine_main_enter_ts, // timestamp0 - engine_main_enter_ts, // timestamp1_or_async_id + Dart_TimelineGetMicros(), // timestamp1_or_async_id Dart_Timeline_Event_Duration, // event type 0, // argument_count nullptr, // argument_names From ec651dac9e80ea58265449e537256ec0bd424a36 Mon Sep 17 00:00:00 2001 From: yuanhuihui Date: Wed, 11 Dec 2019 11:19:53 +0800 Subject: [PATCH 2/2] format --- runtime/dart_vm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/dart_vm.cc b/runtime/dart_vm.cc index df925959982c8..f1eb3b0c7afb5 100644 --- a/runtime/dart_vm.cc +++ b/runtime/dart_vm.cc @@ -417,7 +417,7 @@ DartVM::DartVM(std::shared_ptr vm_data, if (engine_main_enter_ts != 0) { Dart_TimelineEvent("FlutterEngineMainEnter", // label engine_main_enter_ts, // timestamp0 - Dart_TimelineGetMicros(), // timestamp1_or_async_id + Dart_TimelineGetMicros(), // timestamp1_or_async_id Dart_Timeline_Event_Duration, // event type 0, // argument_count nullptr, // argument_names