Expand description
§Overlay profiler
§Profiler UI string syntax
Comma-separated list of of tokens with trailing and leading spaces trimmed. Each tokens can be:
- A counter name with an optional prefix. The name corresponds to the displayed name (see the
counters vector below.
- By default (no prefix) the counter is shown as average + max over half a second.
- With a ‘#’ prefix the counter is shown as a graph.
- With a ‘*’ prefix the counter is shown as a change indicator.
- Some special counters such as GPU time queries have specific visualizations ignoring prefixes.
- A preset name to append the preset to the UI (see PROFILER_PRESETS).
- An empty token to insert a bit of vertical space.
- A ‘|’ token to start a new column.
- A ‘_’ token to start a new row.
Macros§
- A helper macro to define profile scopes.
- set_text 🔒
Structs§
- Ranges of expected value for a profile counter.
- A simple RAII style struct to manage a profile scope.
- A container for profiling information that moves along the rendering pipeline and is handed off to the profiler at the end.
Enums§
- Item 🔒
Constants§
Statics§
- The current global profiler callbacks, if set by embedder.
- Profiler UI string presets. Defined in the profiler UI string syntax, can contain other presets.
Traits§
- Defines the interface for hooking up an external profiler to WR.
Functions§
- Records a marker of the given duration that just ended.
- Records a marker of the given duration that just ended.
- expected 🔒
- Register a thread with the Gecko Profiler.
- Set the profiler callbacks, or None to disable the profiler. This function must only ever be called before any WR instances have been created, or the hooks will not be set.
- Returns true if the current thread is being profiled.
- Unregister a thread with the Gecko Profiler.