Skip to content

SessionState

Inspect session.state for the lifecycle of a profiling session. Import SessionState from linescope to compare states.

enum linescope.enums.SessionState[source]

Track the lifecycle of a single profiling session.

A session starts once and remains stopped after cleanup.

  • CREATED
  • RUNNING
  • STOPPED
Attributes

CREATED : SessionState

Represent a session whose collection has not started.

RUNNING : SessionState

Represent a session with active instrumentation.

STOPPED : SessionState

Represent a finalized session after cleanup.