CloseableTraceScope
public class CloseableTraceScope
extends Object
java.lang.Object | |
↳ | com.android.tradefed.invoker.tracing.CloseableTraceScope |
允许通过 try-with-resources 报告跟踪部分的作用域类
概括
公共构造函数 | |
---|---|
CloseableTraceScope (String category, String name) 报告范围跟踪。 | |
CloseableTraceScope (String name) 构造函数。 | |
CloseableTraceScope () 从线程报告范围的构造函数。 |
公共方法 | |
---|---|
void | close () |
公共构造函数
CloseableTraceScope
public CloseableTraceScope (String category, String name)
报告范围跟踪。
参数 | |
---|---|
category | String : 操作的类别 |
name | String : 报告部分的名称 |
CloseableTraceScope
public CloseableTraceScope (String name)
构造函数。
参数 | |
---|---|
name | String |
CloseableTraceScope
public CloseableTraceScope ()
从线程报告范围的构造函数。
公共方法
关
public void close ()