Very simplistic manual tracing profiler for individual functions.
Very simplistic manual tracing profiler for individual functions.
(profilable? v)
Return true if v
contains a profilable function.
Return true if `v` contains a profilable function.
(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`.
(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`.
(profiled? v)
Return true if v
is already profiled.
Return true if `v` is already profiled.
(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.
(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`.
(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.
(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.
(unprofile-ns ns)
Unprofile all Vars in the given namespace.
Unprofile all Vars in the given namespace.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close