Exemplo n.º 1
0
 public void recordCounter(ServerStatus serverStatus, String name, int counter) {
   if (shouldNotRecord(serverStatus)) return;
   lazyInitRecordings();
   recordings.add(Recording.counter(name, counter));
 }
Exemplo n.º 2
0
 // helper methods to optionally record timing information per message, useful for debugging or
 // benchmarking
 // not thread safe!
 public void recordTiming(ServerStatus serverStatus, String name, long elapsedNanos) {
   if (shouldNotRecord(serverStatus)) return;
   lazyInitRecordings();
   recordings.add(Recording.timing(name, elapsedNanos));
 }