Liking cljdoc? Tell your friends :D

metrics.timers


deftimercljmacro

(deftimer title)
(deftimer reg title)

Define a new Timer metric with the given title.

The title uses some basic desugaring to let you concisely define metrics:

; Define a timer titled "default.default.foo" into var foo (deftimer foo) (deftimer "foo")

; Define a timer titled "a.b.c" into var c (deftimer [a b c]) (deftimer ["a" "b" "c"]) (deftimer [a "b" c])

Define a new Timer metric with the given title.

The title uses some basic desugaring to let you concisely define metrics:

  ; Define a timer titled "default.default.foo" into var foo
  (deftimer foo)
  (deftimer "foo")

  ; Define a timer titled "a.b.c" into var c
  (deftimer [a b c])
  (deftimer ["a" "b" "c"])
  (deftimer [a "b" c])
sourceraw docstring

largestclj

(largest t)

Returns the greatest timing seen by a timer, in nanoseconds

Returns the greatest timing seen by a timer, in nanoseconds
sourceraw docstring

meanclj

(mean t)
source

number-recordedclj

(number-recorded t)
source

percentilesclj

(percentiles t)
(percentiles t ps)

Returns timing percentiles seen by a timer, in nanoseconds

Returns timing percentiles seen by a timer, in nanoseconds
sourceraw docstring

rate-fifteenclj

(rate-fifteen m)
source

rate-fiveclj

(rate-five m)
source

rate-meanclj

(rate-mean m)
source

rate-oneclj

(rate-one m)
source

ratesclj

(rates m)
source

sampleclj

(sample t)
source

smallestclj

(smallest t)

Returns the smallest timing seen by a timer, in nanoseconds

Returns the smallest timing seen by a timer, in nanoseconds
sourceraw docstring

startclj

(start t)

Start a timer, returning the context object that will be used to stop this particular instance.

Start a timer, returning the context object that will be used to
stop this particular instance.
sourceraw docstring

start-stop-time!cljmacro

(start-stop-time! t & body)
source

std-devclj

(std-dev t)
source

stopclj

(stop tc)

Stop an instance of a timer, given the Timer$Context instance that was returned when it was started.

Stop an instance of a timer, given the Timer$Context instance that
was returned when it was started.
sourceraw docstring

time!cljmacro

(time! t & body)
source

time-fn!clj

(time-fn! t f)
source

timerclj

(timer title)
(timer reg title)

Create and return a new Timer metric with the given title. If a Timer already exists with the given title, will return that Timer.

Title can be a plain string like "foo" or a vector of three strings (group, type, and title) like:

["myapp" "webserver" "connections"]
Create and return a new Timer metric with the given title. If a
Timer already exists with the given title, will return that Timer.

Title can be a plain string like "foo" or a vector of three strings (group,
type, and title) like:

    ["myapp" "webserver" "connections"]

sourceraw docstring

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

× close