public interface StopWatchFactory
Modifier and Type | Method and Description |
---|---|
MemoryWatch |
createMemoryWatch(java.lang.String userSpecifiedLabel,
java.lang.String internallyGeneratedLabel,
int uniqueId)
Build an instance of a MemoryWatch
|
StopWatch |
createStopWatch(java.lang.String userSpecifiedLabel,
java.lang.String internallyGeneratedLabel,
int uniqueId,
boolean nesting)
Build an instance of a StopWatch
|
StopWatch createStopWatch(java.lang.String userSpecifiedLabel, java.lang.String internallyGeneratedLabel, int uniqueId, boolean nesting)
userSpecifiedLabel
- - specified by the developerinternallyGeneratedLabel
- - generated internally to include the method and line number of the code making the calluniqueId
- - assigned to distinguish between StopWatch's when compiler line numbers are disablednesting
- - StopWatch should keep track of call nestingMemoryWatch createMemoryWatch(java.lang.String userSpecifiedLabel, java.lang.String internallyGeneratedLabel, int uniqueId)
userSpecifiedLabel
- - specified by the developerinternallyGeneratedLabel
- - generated internally to include the method and line number of the code making the calluniqueId
- - assigned to distinguish between StopWatch's when compiler line numbers are disabled