pcdsutils.import_timer.ImportTimeStats
- class pcdsutils.import_timer.ImportTimeStats(module: str, root_module: str, self_time_raw: int, self_time: float, cumulative_time_raw: int, cumulative_time: float, indent_level: int)[source]
Stats about importing this module or submodule.
- Attributes:
- modulestr
The full import name, e.g. pcdsdevices.signal
- root_modulestr
The source module, e.g. pcdsdevices
- self_time_rawint
The time it took to import this module in microseconds, not counting the time it took to import other modules.
- self_timefloat
The time it took to import this module in seconds, not counting the time it took to import other modules.
- cumulative_time_rawint
The time it took to import this module in microseconds, including the time it took to import other modules.
- cumulative_timefloat
The time it took to import this module in seconds, including the time it took to import other modules.
- indent_levelint
How deep this import was. An indent level of 0 indicates that this was the main import or a python internal import used to set up the import system itself. Each additional level means that this module was imported by a module one level lower. For example, a module with indent level 2 was imported by a module with import level 1.
Methods
from_line(line)Assemble an ImportTimeStats from a python -X importtime output line.
- __init__(module: str, root_module: str, self_time_raw: int, self_time: float, cumulative_time_raw: int, cumulative_time: float, indent_level: int) None
Methods
__init__(module, root_module, self_time_raw, ...)from_line(line)Assemble an ImportTimeStats from a python -X importtime output line.
Attributes
moduleroot_moduleself_time_rawself_timecumulative_time_rawcumulative_timeindent_level