What: two fields on WarmStatistics, which stays Copy + Eq + Default.
- record_in_making: the record's place among every record handed to the device's
Device::warm calls, in the order handed (each call notes its first's place). While it is
made, that is the six record counts' sum. None between records and while no pass runs.
- record_in_making_nanos: how long that making has worked.
How the time is kept (warm/pass.rs):
- Each record's making now has its own Pass. The Pass shares the call's byte count and holds
a clock: the wall time while one thread or more works for it. That is the pass's thread
inside `within`, or a piece of the record's that it handed the pool, which captures that
record's Pass when handed.
- warm::waiting stops the clock around this thread's waits. It is wrapped around:
- a thread's wait for its budget turn (thread_turn_in);
- without_turn's lend and retake, which covers compile_memory's words wait and the flight
and library waits;
- making.rs's waits for a making in flight;
- pool.rs's full join.
A nested wait is the outer one's, and a thread works once for a pass it already works for.
- The warmer keeps the record in making (index and Pass) from just before its creation until
just before its outcome is counted, so the index and the counts' sum agree whenever it is
Some.
- A test-only gate (warm::gate) holds a chosen record's making, working, at its start.
Why: reims's warmbound lane needs to find a warm record whose making never ends (an ANV
making on ms01's Iris) and tombstone it once it has worked 60 s. A record starved by a
program's storm must never look like that.
Verified: not run at this commit. Tests added:
- pipeline::budget::tests::a_warm_making_s_time_holds_still_while_it_waits_for_a_turn
- pipeline::budget::tests::a_warm_making_s_time_holds_still_while_its_piece_waits_for_a_turn
- tests::warm::the_record_in_making_names_its_place_and_how_long_it_worked
Signatures blessed.