Performance

Performance

概述

Performance 是 Aspose.Html FOSS 中用于 Python 的一个类。

Performance 接口的最小存根。

此类提供 8 个方法,用于在 Python 程序中操作 Performance 对象。可用的方法包括:__init__、clear_marks、clear_measures、get_entries_by_name、get_entries_by_type、mark、measure、now。安装 Aspose.Html FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:timing。

属性

名称类型访问描述
timingPerformanceTiming读取返回 :class:PerformanceTiming 存根(所有属性 0)。

方法

签名描述
__init__()Calls init 在此 Performance 实例上。
now() → float返回自创建此实例以来经过的毫秒数。
mark(name: str)记录一个 mark 条目使用给定的 name.
`measure(name: str, start_mark: strNone, end_mark: str
get_entries_by_name(name: str) → list[PerformanceEntry]返回所有满足以下条件的条目 name matches name.
get_entries_by_type(type_: str) → list[PerformanceEntry]返回所有符合条件的条目 entry_type matches type_.
`clear_marks(name: strNone)`
`clear_measures(name: strNone)`

另请参阅

 中文