grade labels and fallback windows: every figure says how it was obtained #222
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/grade-labels-and-windows"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The metering sweeps turned up smaller grading defects. In each one, a figure or label claimed better provenance than the way the figure was obtained, or the reverse. Some also mis-measured the window they billed. None of them touches a signed vector.
What
HwShuntby counter class, including power-draw sampling. It now grades by what was actually read.model_basedwhile mesh emitsModelBased, so every mesh figure bridged throughusage.energywas silently under-graded toEstimator. It now reads the labels mesh actually emits and still accepts the old spelling.ModelBasedfigure was "measured". They now say it was modeled.ModelBased, so a hard-coded 2 J per call would have been graded as a model. A backend now declares its figure's grade, and the default isEstimator.ModelBasedas "vendor TDP + utilisation". It now defines the grades as the family does: an uncalibrated model is an estimate.ProcessSpanMeter. The fallback meter's window opened before the GPU snapshot and closed after it, so it included the meter's own waits for the GPU rail. That billed an 11 µs request about 9.5 J. The fallback is now read inside the snapshots, so its window is the work's, and the CPU window stays innermost. mesh-meter's docs are updated to match (mesh already bills its own estimate for this case).calibration_file_path()is now the one place the calibration file's path is decided, used by the placer and both writers. Before,fabric_calibrateignoredJOULECLAW_FABRIC_CALIBRATION, so a calibration written under the variable was not the file the placer loaded.Each fix has a test that fails on the old behaviour.
Evidence
ioreport: 122;rayon fabric-meter: 379;server,metal: 28.🤖 Generated with Claude Code