Liking cljdoc? Tell your friends :D

clj-memory-meter.core


convert-to-human-readableclj

(convert-to-human-readable bytes)
Taken from http://programming.guide/java/formatting-byte-size-to-human-readable-format.html.
sourceraw docstring

measureclj

(measure object & {:keys [debug shallow bytes meter]})

Measure the memory usage of the object. Return a human-readable string.

:debug - if true, print the object layout tree to stdout. Can also be set to a number to limit the nesting level being printed. :shallow - if true, count only the object header and its fields, don't follow object references :bytes - if true, return a number of bytes instead of a string :meter - custom org.github.jamm.MemoryMeter object

Measure the memory usage of the `object`. Return a human-readable string.

:debug   - if true, print the object layout tree to stdout. Can also be set to
           a number to limit the nesting level being printed.
:shallow - if true, count only the object header and its fields, don't follow
           object references
:bytes   - if true, return a number of bytes instead of a string
:meter   - custom org.github.jamm.MemoryMeter object
sourceraw docstring

meter-builderclj

(meter-builder)
source

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

× close