pub struct MetricsConfig {
pub dir: String,
pub top_n: usize,
pub delta: bool,
}Expand description
Configuration for a metrics session, supplied when the session is opened.
Fields§
§dir: StringOutput directory for the report, relative to cwd (or absolute). See report_dir_for.
top_n: usizeUpper bound for every “top-N” list so output stays small regardless of app size.
delta: boolWhether to read/write .state.json and emit a build-over-build delta.
Implementations§
Source§impl MetricsConfig
impl MetricsConfig
Sourcepub fn new(dir: String) -> MetricsConfig
pub fn new(dir: String) -> MetricsConfig
A config that writes the report to dir, with the default top-N bound and delta.
Trait Implementations§
Source§impl Clone for MetricsConfig
impl Clone for MetricsConfig
Source§fn clone(&self) -> MetricsConfig
fn clone(&self) -> MetricsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricsConfig
impl Debug for MetricsConfig
Source§impl Default for MetricsConfig
impl Default for MetricsConfig
Source§fn default() -> MetricsConfig
fn default() -> MetricsConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for MetricsConfig
impl Freeze for MetricsConfig
impl RefUnwindSafe for MetricsConfig
impl Send for MetricsConfig
impl Sync for MetricsConfig
impl Unpin for MetricsConfig
impl UnsafeUnpin for MetricsConfig
impl UnwindSafe for MetricsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more