Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Migrate the Fuchsia embedder to the Dart_RecordTimelineEvent API #50823

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions shell/platform/fuchsia/dart_runner/dart_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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) {
Expand Down