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§
Trait Implementations§
Source§impl Clone for MetricsConfig
impl Clone for MetricsConfig
Source§impl Debug for MetricsConfig
impl Debug for MetricsConfig
Auto Trait Implementations§
impl Forget for MetricsConfig
impl Freeze for MetricsConfig
impl Move 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