android.view
public
class
android.view.ViewDebug
Various debugging/tracing tools related to View and the view hierarchy.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
public
static
void
startHierarchyTracing(String prefix, View view)
Starts tracing the view hierarchy of the specified view. The trace is identified by a prefix,
used to build the traces files names:
/tmp/view-hierarchy/PREFIX.traces and
/tmp/view-hierarchy/PREFIX.tree.
Only one view hierarchy can be traced at the same time. After calling this method, any
other invocation will result in a
IllegalStateException unless
stopHierarchyTracing() is invoked before.
Calling this method creates the file
/tmp/view-hierarchy/PREFIX.traces
containing all the traces (or method calls) relative to the specified view's hierarchy.
This method will return immediately if TRACE is false.
Parameters
| prefix
| the traces files name prefix |
| view
| the view whose hierarchy must be traced |
public
static
void
stopHierarchyTracing()
Stops the current view hierarchy tracing. This method closes the file
/tmp/view-hierarchy/PREFIX.traces.
Calling this method creates the file
/tmp/view-hierarchy/PREFIX.tree containing
the view hierarchy of the view supplied to
startHierarchyTracing(String, View).
This method will return immediately if TRACE is false.