pub struct CollectorOptions {
    pub cgroup_root: PathBuf,
    pub exit_data: Arc<Mutex<PidMap>>,
    pub collect_io_stat: bool,
    pub disable_disk_stat: bool,
    pub enable_btrfs_stats: bool,
    pub btrfs_samples: u64,
    pub btrfs_min_pct: f64,
    pub cgroup_re: Option<Regex>,
    pub gpu_stats_receiver: Option<Consumer<SampleType>>,
}

Fields

cgroup_root: PathBufexit_data: Arc<Mutex<PidMap>>collect_io_stat: booldisable_disk_stat: boolenable_btrfs_stats: boolbtrfs_samples: u64btrfs_min_pct: f64cgroup_re: Option<Regex>gpu_stats_receiver: Option<Consumer<SampleType>>

Trait Implementations

Returns the “default value” for a type. 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 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.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.