pub struct BenchmarkingRecorder {
pub(crate) registry: Arc<Registry<Key, AtomicStorage>>,
}
Expand description
A simplistic recorder for benchmarking.
Simulates typical recorder implementations by utilizing Registry
, clearing histogram buckets, etc.
Fields§
§registry: Arc<Registry<Key, AtomicStorage>>
Implementations§
Source§impl BenchmarkingRecorder
impl BenchmarkingRecorder
Sourcepub fn new() -> BenchmarkingRecorder
pub fn new() -> BenchmarkingRecorder
Creates a new BenchmarkingRecorder
.
Sourcepub fn controller(&self) -> Controller
pub fn controller(&self) -> Controller
Gets a Controller
attached to this recorder.
Sourcepub fn install(self) -> Result<(), SetRecorderError<Self>>
pub fn install(self) -> Result<(), SetRecorderError<Self>>
Installs this recorder as the global recorder.
Trait Implementations§
Source§impl Default for BenchmarkingRecorder
impl Default for BenchmarkingRecorder
Source§impl Recorder for BenchmarkingRecorder
impl Recorder for BenchmarkingRecorder
Source§fn describe_counter(&self, _: KeyName, _: Option<Unit>, _: SharedString)
fn describe_counter(&self, _: KeyName, _: Option<Unit>, _: SharedString)
Describes a counter. Read more
Source§fn describe_gauge(&self, _: KeyName, _: Option<Unit>, _: SharedString)
fn describe_gauge(&self, _: KeyName, _: Option<Unit>, _: SharedString)
Describes a gauge. Read more
Source§fn describe_histogram(&self, _: KeyName, _: Option<Unit>, _: SharedString)
fn describe_histogram(&self, _: KeyName, _: Option<Unit>, _: SharedString)
Describes a histogram. Read more
Auto Trait Implementations§
impl Freeze for BenchmarkingRecorder
impl RefUnwindSafe for BenchmarkingRecorder
impl Send for BenchmarkingRecorder
impl Sync for BenchmarkingRecorder
impl Unpin for BenchmarkingRecorder
impl UnwindSafe for BenchmarkingRecorder
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