pub struct MetricMap(_);
🔬This is a nightly-only experimental API. (
test
)Implementations§
source§impl MetricMap
impl MetricMap
pub fn new() -> MetricMap
🔬This is a nightly-only experimental API. (
test
)sourcepub fn insert_metric(&mut self, name: &str, value: f64, noise: f64)
🔬This is a nightly-only experimental API. (test
)
pub fn insert_metric(&mut self, name: &str, value: f64, noise: f64)
test
)将名为 value
(+/-noise
) 的度量标准插入 map。该值必须为非负数。
noise
表示度量的不确定性,当使用 compare_to_old
从一个度量与下一个度量进行比较时,该命名值的可接受的成对回归的 “noise range” 会增加一倍。
如果 noise
为正,则表示您希望看到该度量值变小,因此在正方向上大于 noise
的更改表示回归。
如果 noise
为负,则表示您希望看到该指标的值变大,因此在负方向上大于 noise
的更改表示回归。
pub fn fmt_metrics(&self) -> String
🔬This is a nightly-only experimental API. (
test
)Trait Implementations§
impl StructuralPartialEq for MetricMap
Auto Trait Implementations§
impl RefUnwindSafe for MetricMap
impl Send for MetricMap
impl Sync for MetricMap
impl Unpin for MetricMap
impl UnwindSafe for MetricMap
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
从拥有的值中借用。 Read more