pub struct GlobalProfiler { /* private fields */ }
Expand description

Singleton. Collects profiling data from multiple threads and passes them on to different FrameSinks.

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.

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().

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.