Skip to content

RawLine


Include these records in RawBackendResult to report a collector's measurements for individual source lines. Unsupported metrics remain None.

dataclass linescope.backends.base.RawLine[source]

Carry a measurement before source ownership and navigation are applied.

samples counts observed project thread frames. Keep it None when the collector cannot supply counts; samples are independent of hits.

Attributes

filename : str

Runtime filename awaiting project ownership and snapshot resolution.

line : int

One-based source line reported by the collector.

wall_time_ns : int | None

Collected driver line time, or None when unavailable.

hits : int | None

Exact line execution count, or None when unsupported.

memory : MemoryStats | None

Collected allocation measurements, or None when unavailable.

gpu : GPUStats | None

Collected GPU work, or None when unavailable.

samples : int | None

Collected sampling observations, or None when unsupported; never exact hits.


See Also

LineStats

Aggregate a visible source line without inventing unsupported hit counts.

MemoryStats

Describe allocation measurements in bytes, separate from process RAM.

RawBackendResult

Return only collector measurements, independent of the report renderer.