Created
May 15, 2015 10:51
-
-
Save epickrram/e4a1e414a320a37a9693 to your computer and use it in GitHub Desktop.
Instrumented Journaller snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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