(start-alloc-rate-meter callback-fn & {:keys [interval-ms]})
Start the allocation meter thread. It will measure the heap object allocation
rate every interval-ms
(1000 by default) and call callback-fn
with the
allocation rate in bytes/sec. Note that the rate will not be reported every
interval-ms
as the iterations that happen accross a GC cycle are discarded.
Returns a nullary function which when called terminates the measuring thread.
Start the allocation meter thread. It will measure the heap object allocation rate every `interval-ms` (1000 by default) and call `callback-fn` with the allocation rate in bytes/sec. Note that the rate will not be reported every `interval-ms` as the iterations that happen accross a GC cycle are discarded. Returns a nullary function which when called terminates the measuring thread.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |