Performance

Overview

Performance is a class in Aspose.Html FOSS for Python.

Minimal stub for the Performance interface.

This class provides 8 methods for working with Performance objects in Python programs. Available methods include: __init__, clear_marks, clear_measures, get_entries_by_name, get_entries_by_type, mark, measure, now. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package. Properties: timing.

Properties

NameTypeAccessDescription
timingPerformanceTimingReadReturn the :class:PerformanceTiming stub (all attributes 0).

Methods

SignatureDescription
__init__()Calls init on this Performance instance.
now()floatReturn elapsed milliseconds since this instance was created.
mark(name: str)Record a mark entry with the given name.
measure(name: str, start_mark: str | None, end_mark: str | None)Record a measure entry with the given name.
get_entries_by_name(name: str)list[PerformanceEntry]Return all entries whose name matches name.
get_entries_by_type(type_: str)list[PerformanceEntry]Return all entries whose entry_type matches type_.
clear_marks(name: str | None)Remove mark entries from the internal store.
clear_measures(name: str | None)Remove measure entries from the internal store.

See Also