Skip to content

RawBackendResult

Return from ProfilerBackend.result with line measurements, call counts, and diagnostics.

dataclass linescope.backends.base.RawBackendResult[source]

Return only collector measurements, independent of the report renderer.

Attributes

lines : list[RawLine]

Collector measurements before source attribution and navigation.

warnings : list[str]

Honest diagnostics about collection limits or failures.

function_calls : dict[tuple[str, str, int], int | None]

Exact call counts keyed by filename, qualified name, and first line. None marks a function whose entry was missed because it was already active when collection began.


See Also

BackendCapabilities

Describe measurements a collector can actually provide.

ProfilerBackend

Define the minimal pluggable measurement lifecycle.

RawLine

Carry a measurement before source ownership and navigation are applied.