(self)
| 182 | return "\n".join(lines) |
| 183 | |
| 184 | def as_dict(self) -> dict: |
| 185 | base = self._snaps[0].gpu_used_mb if self._snaps else 0 |
| 186 | return { |
| 187 | "gpu_name": self._gpu_name, |
| 188 | "gpu_total_mb": self._gpu_total_mb, |
| 189 | "peak_gpu_mb": self.peak_gpu_mb, |
| 190 | "total_allocated_mb": self.peak_gpu_mb - base, |
| 191 | "snapshots": {s.label: s.gpu_used_mb for s in self._snaps}, |
| 192 | } |
nothing calls this directly
no outgoing calls
no test coverage detected