Struct pprof::Report

source ·
pub struct Report {
    pub data: HashMap<Frames, isize>,
    pub timing: ReportTiming,
}
Expand description

The final presentation of a report which is actually an HashMap from Frames to isize (count).

Fields

data: HashMap<Frames, isize>

Key is a backtrace captured by profiler and value is count of it.

timing: ReportTiming

Collection frequency, start time, duration.

Implementations

flamegraph will write an svg flamegraph into writer only available with flamegraph feature

same as flamegraph, but accepts custom options for the flamegraph

pprof will generate google’s pprof format report.

Trait Implementations

This will generate Report in a human-readable format:

FRAME: pprof::profiler::perf_signal_handler::h7b995c4ab2e66493 -> FRAME: Unknown -> FRAME: {func1} ->
FRAME: {func2} -> FRAME: {func3} ->  THREAD: {thread_name} {count}
Formats the value using the given formatter. 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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.