| 332 | } |
| 333 | |
| 334 | VramSnapshot VramGuard::sample() { |
| 335 | Impl& m = *p_; |
| 336 | if (!m.enabled) return VramSnapshot{}; |
| 337 | std::lock_guard<std::mutex> g(m.mu); |
| 338 | m.last = m.read(); |
| 339 | return m.last; |
| 340 | } |
| 341 | |
| 342 | uint64_t VramGuard::spare_for_growth() { |
| 343 | Impl& m = *p_; |