Struct puffin::GlobalProfiler [−][src]
pub struct GlobalProfiler { /* fields omitted */ }
Expand description
Singleton. Collects profiling data from multiple threads
and passes them on to different FrameSink
:s.
Implementations
Access to the global profiler singleton.
You need to call this once at the start of every frame.
It is fine to call this from within a profile scope.
Report some profiling data. Called from ThreadProfiler
.
Tells GlobalProfiler
to call this function with each new finished frame.
The returned FrameSinkId
can be used to remove the sink with Self::remove_sink
.