From 4e4e85cb9a775c62db7ae6e82fb7aae87b6e6dd1 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 21 Feb 2024 16:46:30 +0000 Subject: [PATCH] Migrate the Fuchsia embedder to the Dart_RecordTimelineEvent API Dart_TimelineEvent has been deprecated. --- shell/platform/fuchsia/dart_runner/dart_runner.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/shell/platform/fuchsia/dart_runner/dart_runner.cc b/shell/platform/fuchsia/dart_runner/dart_runner.cc index 79e28e65f6d81..f420a3ec8bf06 100644 --- a/shell/platform/fuchsia/dart_runner/dart_runner.cc +++ b/shell/platform/fuchsia/dart_runner/dart_runner.cc @@ -114,8 +114,9 @@ void RunApplication( const bool success = app.SetUp(); const int64_t end = Dart_TimelineGetMicros(); - Dart_TimelineEvent("DartComponentController::SetUp", start, end, - Dart_Timeline_Event_Duration, 0, NULL, NULL); + Dart_RecordTimelineEvent( + "DartComponentController::SetUp", start, end, 0, nullptr, + Dart_Timeline_Event_Duration, 0, NULL, NULL); if (success) { app.Run(); } @@ -146,8 +147,9 @@ void RunTestApplication( test_component->SetUp(); const int64_t end = Dart_TimelineGetMicros(); - Dart_TimelineEvent("DartTestComponentController::SetUp", start, end, - Dart_Timeline_Event_Duration, 0, NULL, NULL); + Dart_RecordTimelineEvent( + "DartTestComponentController::SetUp", start, end, 0, nullptr, + Dart_Timeline_Event_Duration, 0, NULL, NULL); } bool EntropySource(uint8_t* buffer, intptr_t count) {