public static interface SimplePerfEvent.Scope extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
appendFinishedInfo(String k1,
Object v1)
Appends information to the finished event which will be sent when control exits the scope.
|
void |
close() |
void |
incrementFinishedCounter(String key,
long increment)
Increments a counter that will be appended to the finished event.
|
void |
update(com.google.common.collect.ImmutableMap<String,Object> info)
Creates and sends an event which indicates an update in state of the scope.
|
void |
update(String k1,
Object v1)
Convenience wrapper for
update(ImmutableMap) . |
void |
update(String k1,
Object v1,
String k2,
Object v2)
Convenience wrapper for
update(ImmutableMap) . |
void update(com.google.common.collect.ImmutableMap<String,Object> info)
info
- Any additional information to be saved with the event. This will be serialized
and potentially sent over the wire, so please keep this small.void update(String k1, Object v1)
update(ImmutableMap)
.void update(String k1, Object v1, String k2, Object v2)
update(ImmutableMap)
.void appendFinishedInfo(String k1, Object v1)
k1
- name of the value to be stored with the event.v1
- value to be stored. This will be serialized and potentially sent over the wire, so
please keep this small.void incrementFinishedCounter(String key, long increment)
void close()
close
in interface AutoCloseable