Timing placement¶
langadapter.placement ¶
Placement of timing runs: waiting for the process's other benchmarks, and
the one launcher of a timing process on this machine. The caller decides and
nothing reads a configuration. Serializing covers one benchmark's warm-up and
measured repetitions within one process (separate processes need external
coordination). The caller picks the processor set (taskset -c).
serialized ¶
serialized(enabled: bool) -> Iterator[None]
Hold the process-wide benchmark lock for the block when enabled.
run_timed ¶
run_timed(command: Sequence[str], *, env: Optional[Dict[str, str]] = None, cwd: Optional[str] = None, timeout: Optional[float] = None) -> subprocess.CompletedProcess
Run a timing process on this machine, its output captured as text. A
timeout or interruption ends its process tree, and TimeoutExpired
propagates.