-
public class FrescoInstrumenterUtility class that provides hooks to capture execution of different units of work. Client code can specify a custom Instrumenter that will receive ad-hoc updates when work that has to be executed across threads gets moved around.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceFrescoInstrumenter.InstrumenterAllows to capture unit of works across different threads.
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisTracingpublic final static FrescoInstrumenterINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitprovide(FrescoInstrumenter.Instrumenter instrumenter)Allows to provide a Instrumenter that will receive units of work updates. final static ObjectonBeforeSubmitWork(String tag)final static ObjectonBeginWork(Object token, String tag)final static UnitonEndWork(Object token)final static UnitmarkFailure(Object token, Throwable th)final static RunnabledecorateRunnable(Runnable runnable, String tag)final static BooleangetIsTracing()-
-
Method Detail
-
provide
final static Unit provide(FrescoInstrumenter.Instrumenter instrumenter)
Allows to provide a Instrumenter that will receive units of work updates.
- Parameters:
instrumenter- to be notified or null to reset.
-
onBeforeSubmitWork
final static Object onBeforeSubmitWork(String tag)
-
onBeginWork
final static Object onBeginWork(Object token, String tag)
-
markFailure
final static Unit markFailure(Object token, Throwable th)
-
decorateRunnable
final static Runnable decorateRunnable(Runnable runnable, String tag)
-
getIsTracing
final static Boolean getIsTracing()
-
-
-
-