Apply a single load event to the metrics counters in-place.
Updates:
loads
elementsLoaded
elements
bytesLoaded
bytes
avgLoadTime
(prev_avg × (n-1) + new_load_time) / n
Pure-ish: mutates counters (the only side-effect) and returns it.
counters
Apply a single load event to the metrics counters in-place.
Updates:
loads: incremented by 1elementsLoaded: incremented byelements(points / vertices / splats)bytesLoaded: incremented bybytesavgLoadTime: rolling mean(prev_avg × (n-1) + new_load_time) / nafter the incrementPure-ish: mutates
counters(the only side-effect) and returns it.