Skip to content
API REFERENCEUsage guides →

cellpack::prof::ProfileReport ​

struct

Module contract · All interfaces

At a glance ​

pub struct ProfileReport {
    pub schemas: usize,
    pub bands: usize,
    pub sites: Vec<SiteReport>,
}

What a profiled run recorded, per enabled site.

Fields and variants ​

schemas ​

schemas: usize

Schemas the run’s sites were laid out for.

bands ​

bands: usize

Size bands the run’s sites were laid out for.

sites ​

sites: Vec<SiteReport>

One entry per enabled site, in Site order.

Member index ​

2 of 2 members

  • siteThe report of the site named name , if it was recorded.
  • timeA site’s total time, zero when it was not recorded.

Methods and associated constants ​

site ​

pub fn site(&self, name: &str) -> Option<&SiteReport>

The report of the site named name, if it was recorded.

time ​

pub fn time(&self, name: &str) -> Duration

A site’s total time, zero when it was not recorded.

Implemented traits ​

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