Expand description
Brick-phase profiler for GPU sharing operations (GPU-SHARE-005).
Follows the StepProfiler pattern from KAIZEN-047.
§Contract C-GPUPROF-001
Zero-overhead when disabled: all begin/end calls are no-ops
with zero Instant::now() calls.
§Phases
lock_acq— flock(LOCK_EX) acquisition timeledger_rd— JSON read + deserialize + PID prunevram_qry— cuMemGetInfo / NVML callledger_wr— Atomic write (temp + rename)lock_rel— flock release (close fd)wait_poll— Single poll iteration
Structs§
- GpuProfiler
- Brick-phase profiler for GPU sharing operations.