Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.perf

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.
raw docstring

*ledger*clj

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.
sourceraw docstring

add-stageclj

(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.
sourceraw docstring

close-ledger!clj

(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.
sourceraw docstring

gc-pause-msclj

(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.
sourceraw docstring

log-iteration!clj

(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.
sourceraw docstring

log-turn!clj

(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.
sourceraw docstring

memoryclj

(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.
sourceraw docstring

ms-sinceclj

(ms-since start-ns)
source

new-ledgerclj

(new-ledger)
source

now-nsclj

(now-ns)
source

record-stage!clj

(record-stage! stage ms)

Add ms of stage to the bound ledger. Never throws.

Add `ms` of `stage` to the bound ledger. Never throws.
sourceraw docstring

summaryclj

(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.
sourceraw docstring

timedcljmacro

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close