Java Code Examples for com.codahale.metrics.Snapshot#dump()
The following examples show how to use
com.codahale.metrics.Snapshot#dump() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PrintingTest.java From rolling-metrics with Apache License 2.0 | 5 votes |
@Test public void testSmartSnapshotPrinting() { Reservoir reservoir = new HdrBuilder().buildReservoir(); Snapshot snapshot = snapshotTaker.apply(reservoir); System.out.println(snapshot); snapshot.dump(new ByteArrayOutputStream()); }
Example 2
Source File: PrintingTest.java From rolling-metrics with Apache License 2.0 | 5 votes |
@Test public void testFullSnapshotPrinting() { Reservoir reservoir = new HdrBuilder().withoutSnapshotOptimization().buildReservoir(); Snapshot snapshot = snapshotTaker.apply(reservoir); System.out.println(snapshot); snapshot.dump(new ByteArrayOutputStream()); }