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

Structures that aggregates all the information about the allocations so far.

Implementations

Constructor.

Reserves space for the Alloc vector.

Marks a timestamp.

This sets the current time to the input timestamp.

Init accessor.

True if the data is initialized.

Total number of allocations.

Allocation statistics stored in the global data.

Allocation statistics.

Current time accessor.

Time at which the profiling run started.

Alloc accessor.

Fails if the UID is unknown.

Iterates over all the allocations.

True if there are any new events since some timestamp.

Yields the last events at the current time.

Iterates over the new (de)allocation events in chronological order.

Argument since is an optional pair containing an allocation UID, and a time-of-death (TOD). Input action will run on all new allocations since the UID (exclusive), and all the deallocations since the TOD (exclusive).

Input function action returns a boolean indicating whether the iteration should continue.

Applies some action on the allocation statistics.

Fills the allocation statistics.

Resets the data.

Called when the init file of a run has changed.

Builds a new allocation.

Registers a new allocation.

Registers an allocation’s death.

Registers a diff.

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

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

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.