ProfileEntry#

class pyedb.workflows.utilities.siwave_log_parser.ProfileEntry#

Performance profile entry showing task timing and resource usage.

Attributes:
timestampdatetime

When the task completed.

taskstr

Task or operation name.

real_timestr, optional

Wall clock time in human-readable format. The default is None.

cpu_timestr, optional

CPU time consumed. The default is None.

memorystr, optional

Peak memory usage. The default is None.

extradict of str to str, optional

Additional metrics (e.g., number of elements). The default is an empty dict.

Examples

>>> from datetime import datetime
>>> profile = ProfileEntry(
...     timestamp=datetime(2025, 11, 10, 9, 30, 0),
...     task="Mesh Generation",
...     real_time="00:05:30",
...     cpu_time="00:05:25",
...     memory="2.5 GB",
...     extra={"Number of elements": "50000"},
... )
>>> profile.task
'Mesh Generation'

Overview#

Import detail#

from pyedb.workflows.utilities.siwave_log_parser import ProfileEntry

Attribute detail#

ProfileEntry.timestamp: datetime.datetime#
ProfileEntry.task: str#
ProfileEntry.real_time: str | None = None#
ProfileEntry.cpu_time: str | None = None#
ProfileEntry.memory: str | None = None#
ProfileEntry.extra: dict[str, str]#