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.

Manually add frame data.

Report some profiling data. Called from ThreadProfiler.

Call this function with each new finished frame. The returned FrameSinkId can be used to remove the sink with Self::remove_sink.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.