Skip to content
API REFERENCEUsage guides →

cellpack::prof::Setup ​

struct

Module contract · All interfaces

At a glance ​

pub struct Setup {
    pub mask: SiteMask,
    pub clock: Clock,
    pub layout: Arc<Layout>,
}

A run’s profiling setup: the mask, the clock and the record layout.

Fields and variants ​

mask ​

mask: SiteMask

The sites the run records.

clock ​

clock: Clock

The run’s clock, shared by every forked profiler.

layout ​

layout: Arc<Layout>

The record layout of every thread’s record.

Member index ​

3 of 3 members

  • newA setup for mask with a fresh clock and a layout for the run’s schemas and size bands.
  • profilerA profiler for one thread of the run.
  • reportThe merged records as a report.

Methods and associated constants ​

new ​

pub fn new(mask: SiteMask, schemas: usize, bands: usize) -> Self

A setup for mask with a fresh clock and a layout for the run’s schemas and size bands.

profiler ​

pub fn profiler(&self) -> On

A profiler for one thread of the run.

report ​

pub fn report(&self, rec: &Record) -> ProfileReport

The merged records as a report.

Implemented traits ​

impl Clone for Setup

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