Skip to main content

Module profiler

Module profiler 

Source
Expand description

Profiler hooks used by the executor runtime.

Platform backends bracket each dispatched runnable with [update_running_task] and [save_task_timing]. The executor runtime in this crate has no notion of task timing, so the framework installs its own implementation through set_task_profiler; until then the calls are no-ops.

Structs§

ForegroundRunnableCounter
Tracks how many foreground runnables are queued on the current thread.

Functions§

foreground_runnable_counter
Returns the current thread’s foreground runnable counter.
foreground_runnable_finished
Records that a queued foreground runnable finished on the current thread.
set_task_profiler
Installs the framework’s task profiler hooks.

Type Aliases§

SaveTaskTimingFn
Signature for recording that the running runnable yielded.
UpdateRunningTaskFn
Signature for recording that a runnable began polling.