Liking cljdoc? Tell your friends :D

flow-storm.fn-sampler.core

Instrument entire namespaces for sampling fn args and return values.

The main entry point is flow-storm.fn-sampler.core/sample

When instrumented namespaces code runs, the sampler will collect fns into a map {fully-qualified-fn-symbol-1 {:args-types #{...} :return-types #{...} :call-examples #{...} :var-meta {...}} fully-qualified-fn-symbol-2 {...} ...}

end save it into a edn file then wrapped into a jar.

:args-type is a set of vectors with sampled types descriptions.

:return-types is a set of sampled types descriptions.

:call-examples is a set of {:args [sv] :ret sv} where sv is the value serialization of the sampled value. See serialize-val to see how values get serialized.

:var-meta is meta as returned by Clojure (meta (var fully-qualified-fn-symbol))

Instrument entire namespaces for sampling fn args and return values.

The main entry point is flow-storm.fn-sampler.core/sample

When instrumented namespaces code runs, the sampler will collect fns
into a map {fully-qualified-fn-symbol-1 {:args-types #{...}
                                         :return-types #{...}
                                         :call-examples #{...}
                                         :var-meta {...}}
            fully-qualified-fn-symbol-2 {...}
            ...}

end save it into a edn file then wrapped into a jar.

:args-type is a set of vectors with sampled types descriptions.

:return-types is a set of sampled types descriptions.

:call-examples is a set of {:args [sv] :ret sv} where sv is the value serialization of the sampled value.
               See `serialize-val` to see how values get serialized.

:var-meta is meta as returned by Clojure (meta (var fully-qualified-fn-symbol))
raw docstring

*tracing*clj


add-vars-metaclj

(add-vars-meta fns-map)

collect-fn-callclj

(collect-fn-call {:keys [collected-fns]} fn-call)

contextclj


empty-statsclj

(empty-stats)

max-map-keysclj


max-samples-per-fnclj


peek-thread-frameclj

(peek-thread-frame {:keys [threads-stacks]} thread-id)

pop-thread-frameclj

(pop-thread-frame {:keys [threads-stacks]} thread-id)

push-thread-frameclj

(push-thread-frame {:keys [threads-stacks]} thread-id frame)

report-statsclj

(report-stats {:keys [inst-fns sampled-fns]})

samplecljmacro

(sample {:keys [uninstrument? inst-ns-prefixes print-unsampled?] :as config}
        &
        forms)

Expands into code for sampling the executions of FORMS.

Expands into code for sampling the executions of FORMS. 
raw docstring

serialize-call-examplesclj

(serialize-call-examples {:keys [examples-pprint? examples-print-length
                                 examples-print-level]}
                         collected-fns)

set-stats-inst-fnsclj

(set-stats-inst-fns {:keys [stats]} {:keys [inst-fns]})

trace-fn-callclj

(trace-fn-call fn-call-data)

trace-fn-returnclj

(trace-fn-return {:keys [return]})

type-descclj

(type-desc o)

If o is non nil, returns a string description for the type of o

If `o` is non nil, returns a string description for the type of `o`
raw docstring

type-nameclj

(type-name o)

update-statsclj

(update-stats {:keys [stats]} {:keys [ns fn-name]})

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

× close