CloseableTraceScope

public class CloseableTraceScope
extends Object

java.lang.Object
   ↳ com.android.tradefed.invoker.tracing.CloseableTraceScope


A scoped class that allows to report tracing section via try-with-resources

Summary

Public constructors

CloseableTraceScope()

Constructor for reporting scope from threads.

CloseableTraceScope(ActiveTrace trace, String name)
CloseableTraceScope(String name)

Constructor.

CloseableTraceScope(String category, String name)

Report a scoped trace.

Public methods

void close()

Public constructors

CloseableTraceScope

public CloseableTraceScope ()

Constructor for reporting scope from threads.

CloseableTraceScope

public CloseableTraceScope (ActiveTrace trace, 
                String name)

Parameters
trace ActiveTrace

name String

CloseableTraceScope

public CloseableTraceScope (String name)

Constructor.

Parameters
name String

CloseableTraceScope

public CloseableTraceScope (String category, 
                String name)

Report a scoped trace.

Parameters
category String: The category of the operation

name String: The name for reporting the section

Public methods

close

public void close ()