Returns he number of times that stop has been called on this timer
Returns he number of times that stop has been called on this timer
(deftimer s & opts)
Defines a new timer metric using the symbol as the name. For simplicity, all dashes are translated into dots (idiomatic).
Defines a new timer metric using the symbol as the name. For simplicity, all dashes are translated into dots (idiomatic).
(dorecord t & body)
Executes the statement body and records the time taken.
Executes the statement body and records the time taken.
(mk-timer t)
(mk-timer {:keys [name tags description registry publish-percentiles
percentile-precision publish-percentile-histogram sla
minimum-expected-value maximum-expected-value
distribution-statistic-expiry
distribution-statistic-buffer-length pause-detector]
:or {registry default-registry}}
more-tags)
Defines a new timer
Defines a new timer
Wraps a function so that it is timed when invoked
Wraps a function so that it is timed when invoked
Updates the statistics kept by the timer with the specified amount. Allowed units are :nanoseconds, :microseconds, :milliseconds, :seconds, :minutes, :hours and :days.
Updates the statistics kept by the timer with the specified amount. Allowed units are :nanoseconds, :microseconds, :milliseconds, :seconds, :minutes, :hours and :days.
Executes the function and records the time taken
Executes the function and records the time taken
Records the duration of the operation
Records the duration of the operation
(timer n & opts)
Defines a new timer (a stateful construct useful for measuring short-duration latencies and the frequency of such events) to a single registry, or return an existing counter in that registry. The returned timer will be unique for each registry, but each registry is guaranteed to only create one timer for the same combination of name and tags.
ex. (timer "http.request.latency" :tags {:route "/api/users" :method "GET"})
Defines a new timer (a stateful construct useful for measuring short-duration latencies and the frequency of such events) to a single registry, or return an existing counter in that registry. The returned timer will be unique for each registry, but each registry is guaranteed to only create one timer for the same combination of name and tags. ex. (timer "http.request.latency" :tags {:route "/api/users" :method "GET"})
Returns the total time of recorded events. Allowed units are :nanoseconds, :microseconds, :milliseconds, :seconds, :minutes, :hours and :days.
Returns the total time of recorded events. Allowed units are :nanoseconds, :microseconds, :milliseconds, :seconds, :minutes, :hours and :days.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close