public class ComponentsSystrace extends Object
android.os.Trace
, but allows you to provide your own
functionality. Use it as
ComponentsSystrace.beginSection("tag");
...
ComponentsSystrace.endSection();
android.os.Trace
(see DefaultComponentsSystrace
).
You may supply your own with provide(Systrace)
.Modifier and Type | Class and Description |
---|---|
static interface |
ComponentsSystrace.Systrace |
Modifier and Type | Method and Description |
---|---|
static void |
beginSection(String name) |
static void |
endSection() |
static boolean |
isTracing() |
static void |
provide(ComponentsSystrace.Systrace instance) |
public static void provide(ComponentsSystrace.Systrace instance)
public static void beginSection(String name)
public static void endSection()
public static boolean isTracing()