Repository navigation
LBA REQ 011
Proposed
Analysis / Resource correlation
The system shall correlate CPU, RAM, and disk usage samples to the benchmark frame timeline on a shared epoch-ms / frame axis and, anchored on a trigger instant (e.g. the LabVIEW Getting-Started-Window-visible frame or the benchmark-start marker), shall compute a pre/post-trigger window analysis — count, mean, min, max and the post-minus-pre delta — for each metric.
- Every resource sample resolves to a frame index (floor of elapsed / frame interval; null before frame zero, never clamped), matching the frame-index rule the picture-cursor viewer uses (LBA-REQ-005).
- The trigger instant resolves to a
triggerFrameIndex, and each sample is classifiedpreorpostrelative to it, withsinceTriggerMsrecorded. - Per metric (CPU %, RAM MB, disk %) a pre-window and a post-window summary
(count, mean, min, max) and a
deltaMean = post.mean − pre.meanare emitted; a sample whose counter was absent (null) is skipped in that metric's summary. - The core is pure and deterministic (no I/O, no capture dependency) so the
local gate re-validates it:
[Confirmed 2026-07-28]the self-test is 9/9 green over a canonical series with a Getting-Started-Window-visible trigger at frame 12 (seeexperiments/resource-usage-correlation/).
Sampling (typeperf / logman / Get-Counter) and the live Getting-Started-Window capture live in the capture harness (the maintainer / VM step); keep this module pure so it stays a re-runnable gate artifact.
experiments/resource-usage-correlation/resourceUsageCorrelation.mjs; experiments/resource-usage-correlation/receipt.json; experiments/mprr-capture-ring/in-guest-resource-sampler.py; experiments/mprr-capture-ring/resource-correlated-record.mjs; experiments/mprr-capture-ring/live-vbox-resource-correlation.mjs; experiments/mprr-capture-ring/fixtures/labview-launch-resource-correlation.json; experiments/mprr-capture-ring/verify-resource-correlated-record.mjs; experiments/resource-usage-correlation/verify-resource-correlation.mjs; experiments/resource-usage-correlation/performance-counter-schema.json; experiments/resource-usage-correlation/frameMarkers.mjs; experiments/resource-usage-correlation/frameMarkers.selftest.mjs; experiments/resource-usage-correlation/performanceCounterCorrelation.mjs; experiments/resource-usage-correlation/performanceCounterCorrelation.selftest.mjs; experiments/resource-usage-correlation/linuxProcSampler.mjs; experiments/resource-usage-correlation/fixtures/linux-proc-12fps-capture.json; experiments/resource-usage-correlation/captureAndCorrelate.mjs; experiments/resource-usage-correlation/captureAndCorrelate.selftest.mjs; experiments/resource-usage-correlation/fixtures/linux-proc-12fps-correlated-trigger.json; experiments/mprr-capture-ring/frame-correlator.mjs; experiments/mprr-capture-ring/frameCorrelatorMarkers.selftest.mjs; experiments/mprr-capture-ring/frameCorrelatorMarkers.playwright.cjs; experiments/mprr-capture-ring/fixtures/frame-correlator-markers-playwright-receipt.json; experiments/mprr-capture-ring/liveV2Capture.mjs; experiments/mprr-capture-ring/liveV2Capture.selftest.mjs; experiments/mprr-capture-ring/fixtures/live-v2-capture-receipt.json; experiments/mprr-capture-ring/inGuestSamplerV2.selftest.mjs; experiments/mprr-capture-ring/fixtures/in-guest-sampler-v2-capture.json; experiments/resource-usage-correlation/winPdhSampler.ps1; experiments/resource-usage-correlation/winPdhSampler.selftest.mjs; experiments/resource-usage-correlation/fixtures/win-pdh-12fps-capture.json
Proven