MCPcopy Create free account
hub / github.com/dfinity/orbit / get

Method get

libs/orbit-essentials/src/metrics.rs:332–336  ·  view source on GitHub ↗
(&self, service_name: &str)

Source from the content-addressed store, hash-verified

330 Model: Clone + std::fmt::Debug,
331{
332 fn get(&self, service_name: &str) -> f64 {
333 with_metrics_registry(service_name, |registry| {
334 registry.counter_mut(self.name(), self.help()).get()
335 })
336 }
337
338 fn inc(&mut self, service_name: &str) {
339 with_metrics_registry(service_name, |registry| {

Callers

nothing calls this directly

Implementers 1

metrics.rscore/station/impl/src/core/metrics.rs

Calls 5

with_metrics_registryFunction · 0.85
counter_mutMethod · 0.80
getMethod · 0.45
nameMethod · 0.45
helpMethod · 0.45

Tested by

no test coverage detected