Skip to content

Commit

Permalink
Set the VM's file callbacks. (flutter#32837)
Browse files Browse the repository at this point in the history
These are used to output various tracing enabled by VM flags.
  • Loading branch information
rmacnak-google authored Apr 26, 2022
1 parent 61124ef commit 6ac4019
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/dart_vm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,12 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
params.cleanup_group = reinterpret_cast<decltype(params.cleanup_group)>(
DartIsolate::DartIsolateGroupCleanupCallback);
params.thread_exit = ThreadExitCallback;
params.get_service_assets = GetVMServiceAssetsArchiveCallback;
params.file_open = dart::bin::OpenFile;
params.file_read = dart::bin::ReadFile;
params.file_write = dart::bin::WriteFile;
params.file_close = dart::bin::CloseFile;
params.entropy_source = dart::bin::GetEntropy;
params.get_service_assets = GetVMServiceAssetsArchiveCallback;
DartVMInitializer::Initialize(&params,
settings_.enable_timeline_event_handler);
// Send the earliest available timestamp in the application lifecycle to
Expand Down

0 comments on commit 6ac4019

Please sign in to comment.