追踪记录器
public class TracingLogger
extends Object
java.lang.Object | |
↳ | com.android.tradefed.invoker.tracing.TracingLogger |
帮助管理每个测试调用的跟踪的类。
概括
公共构造函数 | |
---|---|
TracingLogger () |
公共方法 | |
---|---|
static ActiveTrace | createActiveTrace (long pid, long tid, boolean mainProcess) |
static ActiveTrace | createActiveTrace (long pid, long tid) 创建并注册调用的活动跟踪。 |
static File | finalizeTrace () 完成追踪并清除追踪。 |
static ActiveTrace | getActiveTrace () 返回调用的当前活动跟踪,如果没有则返回 null。 |
static ActiveTrace | getMainTrace () 如果存在,则返回 Tradefed 进程本身的当前跟踪。 |
公共构造函数
追踪记录器
public TracingLogger ()
公共方法
创建活动跟踪
public static ActiveTrace createActiveTrace (long pid, long tid, boolean mainProcess)
参数 | |
---|---|
pid | long |
tid | long |
mainProcess | boolean |
退货 | |
---|---|
ActiveTrace |
创建活动跟踪
public static ActiveTrace createActiveTrace (long pid, long tid)
创建并注册调用的活动跟踪。
参数 | |
---|---|
pid | long :当前进程ID |
tid | long :当前线程ID |
退货 | |
---|---|
ActiveTrace |
完成跟踪
public static File finalizeTrace ()
完成追踪并清除追踪。
退货 | |
---|---|
File |