Skip to content

Instantly share code, notes, and snippets.

@epickrram
Created May 15, 2015 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epickrram/e4a1e414a320a37a9693 to your computer and use it in GitHub Desktop.
Save epickrram/e4a1e414a320a37a9693 to your computer and use it in GitHub Desktop.
Instrumented Journaller snippet
@Override
public void writeMessage(final long sequence, final byte[] data, final int length) throws IOException
{
final long startTime = System.nanoTime();
delegate.writeMessage(sequence, data, length);
valueRecorder.recordValue(System.nanoTime() - startTime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment