自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release 而非 aosp-main 构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
NativeBenchmarkTestParser
public
class
NativeBenchmarkTestParser
extends MultiLineReceiver
一种 IShellOutputReceiver,用于解析基准测试数据输出,收集每次操作的平均时间方面的指标。
查找以下输出
Time per iteration min: X avg: Y max: Z
摘要
公共构造函数
NativeBenchmarkTestParser
public NativeBenchmarkTestParser (String runName)
创建 NativeBenchmarkTestParser。
| 参数 |
runName |
String:运行名称。用于日志记录。 |
公共方法
getAvgOperationTime
public double getAvgOperationTime ()
getMaxOperationTime
public double getMaxOperationTime ()
getMinOperationTime
public double getMinOperationTime ()
getRunName
public String getRunName ()
isCancelled
public boolean isCancelled ()
processNewLines
public void processNewLines (String[] lines)
当远程进程接收到新行时调用。
可以保证,当向此方法提供行时,这些行是完整的。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-12-04。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-12-04。"],[],[]]