mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Migrate the Fuchsia embedder to the Dart_RecordTimelineEvent API (flutter/engine#50823)
Dart_TimelineEvent has been deprecated.
This commit is contained in:
parent
304382c276
commit
3708a26cba
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user