Liking cljdoc? Tell your friends :D

clockwork.core

Dev notes:
https://github.com/itsgoingd/clockwork/wiki/Development-notes

Clockwork sample:
https://gist.github.com/itsgoingd/89efad5ee42c0c594d89cd6b9942a3e3
raw docstring

*current-profiler*clj

source

-constructclj

(-construct {:keys [uri query-string headers] :as req}
            res
            data
            {:keys [log-trace-p db-trace-p]})
source

default-optsclj

source

e->logclj

(e->log e)
source

ID-REclj

source

initial-profiler-dataclj

(initial-profiler-data)
source

log-appenderclj

source

ms->sclj

(ms->s ms)

Convert ms to (float) seconds

Convert ms to (float) seconds
sourceraw docstring

ns->msclj

(ns->ms ns0 ns1)

Difference between two nanosecond times in ms

Difference between two nanosecond times in ms
sourceraw docstring

parse-body-paramsclj

(parse-body-params {:keys [body] :as req})
source

parse-frameclj

(parse-frame frame)
source

parse-traceclj

(parse-trace data interesting?)
source

profile-requestclj

(profile-request app req opts)
source

respondclj

(respond store {:keys [stripped] :as req})
source

timingcljmacro

(timing type description & body)

timing lets you mark various external requests such as queries to db

timing lets you mark various external requests such as queries to db
sourceraw docstring

tracecljmacro

(trace section-name & body)

trace lets you wrap sections of your code so they show up as sections on a timeline.

trace lets you wrap sections of your code so they show up as sections on a
timeline.
sourceraw docstring

uuidclj

(uuid)
source

wrapclj

(wrap app opts)

Ring middleware for clockwork.

app - ring app opts:

  • :authorized? - check if current user is allowed to access profile information
  • :profile-request? - check if this request should be profiled
  • :store - object, satisfying clockwork.store/Storage protocol (default: in-memory)
  • :prefix - prefix to serve clockwork's responses under (default: /__clockwork/)
Ring middleware for clockwork.

app - ring app
opts:
  - :authorized? - check if current user is allowed to access profile information
  - :profile-request? - check if this request should be profiled
  - :store - object, satisfying clockwork.store/Storage protocol (default: in-memory)
  - :prefix - prefix to serve clockwork's responses under (default: /__clockwork/)
sourceraw docstring

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

× close