Liking cljdoc? Tell your friends :D

macrometer.timers


countcljmultimethod

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
raw docstring

deftimercljmacro

(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).
raw docstring

dorecordcljmacro

(dorecord t & body)

Executes the statement body and records the time taken.

Executes the statement body and records the time taken.
raw docstring

mk-timerclj

(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
raw docstring

monitorcljmultimethod

Wraps a function so that it is timed when invoked

Wraps a function so that it is timed when invoked
raw docstring

recordcljmultimethod

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.
raw docstring

record-fncljmultimethod

Executes the function and records the time taken

Executes the function and records the time taken
raw docstring

startclj

(start)
(start reg)

Start a timing sample

Start a timing sample
raw docstring

stopcljmultimethod

Records the duration of the operation

Records the duration of the operation
raw docstring

timerclj

(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"})
raw docstring

total-timecljmultimethod

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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close