|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Instrumentable objects can be monitored for latency.
Method Summary | |
void |
addEnterTimestamp(String id,
long timestamp,
TimeUnit unit)
Timestamp the start of a stage |
void |
addExitTimestamp(String id,
long timestamp,
TimeUnit unit)
Timestamp the end of a stage |
long |
getEndTimestamp()
Last timestamp set on event. |
long |
getEnterTimestamp(String id)
Returns start timestamp of a stage |
long |
getExitTimestamp(String id)
Returns end timestamp of a stage |
long |
getStartTimestamp()
Timestamp of event creation. |
TimeUnit |
getTimeUnit()
Time unit returned by getters |
Method Detail |
public void addEnterTimestamp(String id, long timestamp, TimeUnit unit)
stage
- idtimestamp
- time
- unit used by timestamppublic void addExitTimestamp(String id, long timestamp, TimeUnit unit)
stage
- idtimestamp
- time
- unit used by timestamppublic TimeUnit getTimeUnit()
public long getEnterTimestamp(String id)
stage
- idpublic long getExitTimestamp(String id)
stage
- idpublic long getStartTimestamp()
public long getEndTimestamp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |