pub unsafe extern "C" fn Dart_SetTimelineRecorderCallback(
    callback: Dart_TimelineRecorderCallback
)
Expand description

Register a Dart_TimelineRecorderCallback to be called as timeline events are completed.

The callback will be invoked without a current isolate.

The callback will be invoked on the thread completing the event. Because Dart_TimelineEvent may be called by any thread, the callback may be called on any thread.

The callback may be invoked at any time after Dart_Initialize is called and before Dart_Cleanup returns.

If multiple callbacks are registered, only the last callback registered will be remembered. Providing a NULL callback will clear the registration (i.e., a NULL callback produced a no-op instead of a crash).

Setting a callback is insufficient to receive events through the callback. The VM flag timeline_recorder must also be set to callback.