Package dagger.producers.monitoring
Interface ProductionComponentTimingRecorder
public interface ProductionComponentTimingRecorder
A hook for recording timing of the execution of
production components. To install a
ProductionComponentTimingRecorder
, contribute to a set binding of
ProductionComponentTimingRecorder.Factory
, and include the TimingMonitorModule
to
the component. The factory will be asked to create one timing recorder for the component, and the
resulting instance will be used to create individual timing recorders for producers.
If any of these methods throw, then the exception will be logged, and the framework will act as though a no-op timing recorder was returned.
- Since:
- 2.1
-
Nested Class Summary
-
Method Summary
-
Method Details
-
producerTimingRecorderFor
Returns a timing recorder for an individual producer method.
-