PerformanceMetric BTS
描述性能指标名称、指标值和起止时间戳的类型。
Lynx 中提供了 MetricFcpEntry 和 MetricActualFmpEntry 等指标类型,
根据起始点的不同,每个指标类型中都包含多个指标(如:MetricFcpEntry 中包含 fcp、lynxFcp、totalFcp 指标)。为此,设计了 PerformanceMetric,更好的描述每个指标的耗时和起止时间戳。
实例属性
name
指标的名称,如 fcp、lynxFcp、totalFcp 等。
duration
指标的时长。该时长是一个表示为浮点型的数值(单位:毫秒),精确到小数点后三位。例如:100.099。
计算公式为:duration = endTimestamp - startTimestamp。
startTimestampName
指标的开始时间戳名称,如 LoadBundleEntry 中的 loadBundleStart