Repository navigation
Conversation
The price tool parsed the stats line's mean/peak pairs and kept only the means, from one 8-second reading per state. It now keeps each core's peak, takes three readings of the before, at-rest and in-use states by default (--readings), and records how far they spread. --key-bus live|silent records what the key bus carried. All new fields are optional, so older cpu-price.json records load unchanged; module:doctor names the spread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm run device:priceparsed eachstatsline's per-coremean/peakpairs (scripts/device.mjsprints both) withT1-4 (\d+)\/\d+and threw the peak away, soevidence/cpu-price.jsonkept only means while DSP admission has to hold the worst block. Each state (before, at rest, in use) was also one 8-second reading, so a record could not say how far its own figure would move on a second try (two readings of one scene differ by about ±2.5 points of the longest frame,REST_NOISE).reading()keeps each core's peak (dsp1to4Peak,dsp5to8Peak: the busiest frame of the last 1,024-frame window, highest of the window's samples) beside the means. The meter is now sampled about once a second (at least three times) instead of three times a window, so a peak has more windows to land in.--readingsreadings (default 3, 1 to 9).combined()keeps the means averaged, the longest frame and the DSP peaks as the highest any reading saw, frames summed, the guard's skip count and the allocation from the last reading, and from two readings onreadingsand aspreadper figure (highest less lowest).added()adds the peaks toatRestAdds/inUseAddswhere both sides have one. The curve, admission runs and--stockstill take one reading a point.--key-bus live|silentrecords what the key bus carried in the record'sinputs(withtransport: playing, whichdevice:pricealways reads), so a later comparison can tell a fed key bus from a silent one.readingsandinputsat the top; the price'sconditionssentence says "3 readings of 8 s a state".--write's price is unchanged: still the frame interrupt's mean share (owner, 17 November), now averaged over three readings.cpu-price.jsonrecords load as before (the "holds on main" tests over them pass).module:doctor's cpu price line names the readings and the widest spread of a record that has them (readingsNote). The site reads only the means, which keep their meaning;cycle-scan unitreads the peak in its own pull request.scripts/octatrack-price.test.mjs(16 tests; new: peaks parsed, a reading from before the peaks adds no peak, three readings combined with their spread, the inputs,writePricewith readings and inputs) andscripts/module-cpu-price.test.mjs(24 tests; new:readingsNoteand the doctor line, nothing for an old record) pass.npm run pr:readyon 2ff7fcf (main merged in): every stage passed, including the 131 affected Vitest files,modules:check,sdk:check(665 cases) and the build.guard,stats, STOP) are unchanged apart from the count and the sampling interval; the firstdevice:pricerun on a twin will write the first record with peaks and spread.docs/TEST_PROCEDURE.mddescribed one 8-s reading and only the DSP means; fixed there.docs/OCTATRACK_DRIVING.mdis over 40 KB, so itsdevice:pricerow stays as it is (it names no reading count).🤖 Generated with Claude Code