hface icon indicating copy to clipboard operation
hface copied to clipboard

add latencies (i.e. response time) for ops

Open tolitius opened this issue 9 years ago • 0 comments

for example, here is relevant stats hz collects for map get ops:

public void incrementGets(long latency) {
  GET_COUNT_UPDATER.incrementAndGet(this);
  TOTAL_GET_LATENCIES_UPDATER.addAndGet(this, latency);
  MAX_GET_LATENCY_UPDATER.set(this, Math.max(maxGetLatency, latency));
}

neither current or average latencies are recorded by hz, for some reason. so calculate it as:

( total get latency now - total get latency before ) / stats pull interval

tolitius avatar Mar 19 '15 17:03 tolitius