Skip to main content

Module native_profiling

Module native_profiling 

Source
Expand description

Optional embedder hooks for recording native drawing spans. Optional drawing-thread spans supplied by an embedding application.

Structs§

FrameProfilerCallbacks
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.