| com.facebook.imagepipeline.instrumentation.FrescoInstrumenter.Instrumenter |
Allows to capture unit of works across different threads.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract Runnable |
decorateRunnable(Runnable runnable, String tag)
Called when a unit of work is about to be scheduled.
| ||||||||||
| abstract boolean |
isTracing()
Allows to know in advance if the custom instrumenter desires to receive continuation updates.
| ||||||||||
| abstract void |
markFailure(Object token, Throwable th)
Reports a failure while executing work.
| ||||||||||
| abstract Object |
onBeforeSubmitWork(String tag)
Called before scheduling a new unit work.
| ||||||||||
| abstract Object |
onBeginWork(Object token, String tag)
Captures the beginning of the continuation for stolen work.
| ||||||||||
| abstract void |
onEndWork(Object token)
Captures the end of the continuation for stolen work.
| ||||||||||
Called when a unit of work is about to be scheduled.
| runnable | that will be executed. |
|---|---|
| tag | name. |
Allows to know in advance if the custom instrumenter desires to receive continuation updates. This can be used to avoid un-necessary work if the subscriber will not use the information provided.
Reports a failure while executing work.
onEndWork(Object) still needs to be invoked.
| token | returned by onBeginWork(Object, String). |
|---|---|
| th | containing the failure. |
Called before scheduling a new unit work.
| tag | name. |
|---|
Captures the beginning of the continuation for stolen work.
| token | returned by onBeforeSubmitWork(String). |
|---|---|
| tag | optional name. |
Captures the end of the continuation for stolen work.
| token | returned by onBeginWork(Object, String).
|
|---|