(deftimer title)
(deftimer reg title)
(deftimer reg reservoir 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])
(largest t)
Returns the greatest timing seen by a timer, in nanoseconds
Returns the greatest timing seen by a timer, in nanoseconds
(percentiles t)
(percentiles t ps)
Returns timing percentiles seen by a timer, in nanoseconds
Returns timing percentiles seen by a timer, in nanoseconds
(smallest t)
Returns the smallest timing seen by a timer, in nanoseconds
Returns the smallest timing seen by a timer, in nanoseconds
(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.
(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.
(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"]
(timer-with-reservoir reg reservoir title)
Create timer with a custom reservoir. If a Timer already exists with given title, this function will throw IllegalArgumentException.
Create timer with a custom reservoir. If a Timer already exists with given title, this function will throw IllegalArgumentException.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close