Expand description
Optional embedder hooks for recording native drawing spans. Optional drawing-thread spans supplied by an embedding application.
Structs§
- Frame
Profiler Callbacks - The target is an opaque native window key (HWND on Windows). The callbacks run on the drawing thread and must not invoke UI or JS code.
Functions§
- current_
span - Starts a span for the window whose GPUI draw is active on this thread. Disabled hooks do not access thread-local state or read the clock.
- set_
frame_ profiler - Installs or removes optional CPU span hooks without linking an embedder into GPUI.