Skip to content

GPUStats

Inspect a line's gpu field for optional GPU measurements. GPU time and device memory remain separate from Python driver wall time and process RAM.

dataclass linescope.model.GPUStats[source]

Describe sampled GPU work separately from Python driver wall time.

Attributes

time_ns : int | None

GPU utilization integrated over sampled intervals, in nanoseconds.

peak_memory_bytes : int | None

Highest observed device memory in bytes, or None if unavailable.