objwatch.runtime_info module

class objwatch.runtime_info.RuntimeInfo[source]

Bases: object

Runtime information class for ObjWatch.

This class stores and provides access to runtime information such as: - Version of ObjWatch - Start time of execution - System version information - Python version

Uses singleton pattern to ensure consistent runtime information across the application.

_instance: RuntimeInfo | None = <objwatch.runtime_info.RuntimeInfo object>
static __new__(cls) RuntimeInfo[source]

Implement singleton pattern.

_initialize() None[source]

Initialize runtime information.

property version: str

Get the version of ObjWatch.

property start_time: str

Get the start time of execution in UTC.

property system_info: str

Get system version information.

property python_version: str

Get Python version.

get_info_dict() dict[source]

Get all runtime information as a dictionary.

update() None[source]

Update runtime information with current values.

Refreshes the runtime information to reflect the current state. It’s useful to call this at the start of the tracing process to ensure the timing information is accurate.