Skip to content
API REFERENCEUsage guides →

cellpack::prof::SiteReport ​

struct

Module contract · All interfaces

At a glance ​

pub struct SiteReport {
    pub name: &'static str,
    pub calls: u64,
    pub time: Duration,
    pub self_time: Duration,
    pub details: Vec<DetailReport>,
    pub hist: Option<Vec<(u64, u64)>>,
}

One site’s totals, as a report shows them.

Fields and variants ​

name ​

name: &'static str

The site’s name.

calls ​

calls: u64

Calls recorded.

time ​

time: Duration

Time inside the site, including recorded child sites.

self_time ​

self_time: Duration

Time less the recorded child sites.

details ​

details: Vec<DetailReport>

The site’s detail slots that recorded calls.

hist ​

hist: Option<Vec<(u64, u64)>>

Histogram sites: (lower bound in nanoseconds, count) per nonempty log2 bucket.

Implemented traits ​

impl Clone for SiteReport
impl Debug for SiteReport

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition