Liking cljdoc? Tell your friends :D

orchard.profile

Very simplistic manual tracing profiler for individual functions.

Very simplistic manual tracing profiler for individual functions.
raw docstring

clearclj

(clear)

Clears all profiling results.

Clears all profiling results.
sourceraw docstring

profilable?clj

(profilable? v)

Return true if v contains a profilable function.

Return true if `v` contains a profilable function.
sourceraw docstring

profile-nsclj

(profile-ns ns)

Profile all Vars in the given namespace. Can be undone with unprofile-ns.

Profile all Vars in the given namespace. Can be undone with `unprofile-ns`.
sourceraw docstring

profile-varclj

(profile-var v)

If the specified Var holds a function, its contents is replaced with a version wrapped in a profiling call. Can be undone with unprofile-var.

If the specified Var holds a function, its contents is replaced with a version
wrapped in a profiling call. Can be undone with `unprofile-var`.
sourceraw docstring

profiled?clj

(profiled? v)

Return true if v is already profiled.

Return true if `v` is already profiled.
sourceraw docstring

summaryclj

(summary)

Returns a map where keys are the profiled function vars, and values are maps with the profiling stats.

Returns a map where keys are the profiled function vars, and values are maps
with the profiling stats.
sourceraw docstring

summary-for-inspectorclj

(summary-for-inspector)

Return profiling results as a list of stats maps, optimized to be viewed with orchard.inspect.

Return profiling results as a list of stats maps, optimized to be viewed with
`orchard.inspect`.
sourceraw docstring

toggle-profile-nsclj

(toggle-profile-ns ns)

Profile vars in the given namespace if it's not profiled yet, otherwise undo the profiling. Return true if profiling did happen.

Profile vars in the given namespace if it's not profiled yet, otherwise undo
the profiling. Return true if profiling did happen.
sourceraw docstring

unprofile-allclj

(unprofile-all)

Reverses the effect of profiling for all already profiled vars and namespaces.

Reverses the effect of profiling for all already profiled vars and namespaces.
sourceraw docstring

unprofile-nsclj

(unprofile-ns ns)

Unprofile all Vars in the given namespace.

Unprofile all Vars in the given namespace.
sourceraw docstring

unprofile-varclj

(unprofile-var v)

Reverses the effect of profile-var for the given Var, replacing the profiled function with the original version.

Reverses the effect of `profile-var` for the given Var, replacing the profiled
function with the original version.
sourceraw docstring

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

× close