Time and memory of each iteration and turn, logged at info level.
iteration-loop* binds *ledger* for one iteration. Each log-stage! with a
:duration-ms adds to it. One ::iteration line then gives the wall time of each
loop phase, the model and tool time, the framework overhead and the heap.
Time and memory of each iteration and turn, logged at info level. `iteration-loop*` binds `*ledger*` for one iteration. Each `log-stage!` with a `:duration-ms` adds to it. One `::iteration` line then gives the wall time of each loop phase, the model and tool time, the framework overhead and the heap.
The atom of stage times of the running iteration: stage → {:ms :n}, or nil.
The atom of stage times of the running iteration: stage → `{:ms :n}`, or nil.
(add-stage m stage ms)Ledger m with ms added to stage. A nil or negative ms changes nothing.
Ledger `m` with `ms` added to `stage`. A nil or negative `ms` changes nothing.
(close-ledger! ledger)Add the process pause time since ledger started as its :gc stage. Another
session can cause a pause, so :gc explains a stall but does not assign it.
Add the process pause time since `ledger` started as its `:gc` stage. Another session can cause a pause, so `:gc` explains a stall but does not assign it.
(gc-pause-ms)Collector pause time of the whole process since its start, in ms.
Collector pause time of the whole process since its start, in ms.
(log-iteration! iteration wall-ms phases stages)Log one iteration line at info level. Never throws.
Log one iteration line at info level. Never throws.
(log-turn! iterations wall-ms phases stages)Log one turn line at info level. Never throws.
Log one turn line at info level. Never throws.
(memory)Heap in use and, on Linux, resident memory, in MiB. A native image reports its reserved address space as total memory, so committed heap is not logged.
Heap in use and, on Linux, resident memory, in MiB. A native image reports its reserved address space as total memory, so committed heap is not logged.
(record-stage! stage ms)Add ms of stage to the bound ledger. Never throws.
Add `ms` of `stage` to the bound ledger. Never throws.
(summary wall-ms phases stages)One iteration or turn as a log map. phases is phase → ms, stages the ledger,
wall-ms the measured total. :overhead-ms is the wall time without the model
call and the tool code, never below zero.
One iteration or turn as a log map. `phases` is phase → ms, `stages` the ledger, `wall-ms` the measured total. `:overhead-ms` is the wall time without the model call and the tool code, never below zero.
(timed stage & body)Run body and add its wall time to stage in the bound ledger, also on a throw.
Run `body` and add its wall time to `stage` in the bound ledger, also on a throw.
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 |