Skip to content

ProfileRun

Inspect result.root_run for the root profiling scope. Its children retain separately executed notebook runs and inline references.

dataclass linescope.model.ProfileRun[source]

Represent a profiling scope and any separately executed child notebooks.

Attributes

id : str

Unique run identifier, generated when not supplied.

parent_id : str | None

Owning run identifier, or None for a root run.

source : SourceUnit | None

Primary notebook snapshot, when the run represents a notebook.

elapsed_ns : int

Elapsed driver duration of the profiling scope, in nanoseconds.

lines : list[LineStats]

Normalized visible source line measurements and references.

functions : list[FunctionStats]

Function costs indexed from this run's visible measurements.

spark_executions : list[SparkExecution]

Spark actions observed within this profiling scope.

children : list[ProfileRun]

Separate child notebook runs and inline notebook references.

name : str

Display label for this profiling scope.

status : str | RunStatus

Run outcome or reference role normalized at construction.

metadata : dict[str, Any]

Run context, correlation identifiers, and collection diagnostics.

memory_samples : list[MemorySample]

Process RAM observations ordered by elapsed collection time.


See Also

LineStats

Aggregate a visible source line without inventing unsupported hit counts.

ProfileResult

Combine portable source snapshots with backend-independent run data.

SparkExecution

Snapshot one observed action and its available executed query plans.