IMP_LOGGER.addHandler(handler);
DATA_READER_FACTORY_LOGGER.addHandler(handler);
InputStream in = getInputStream("SampleSun1_6_0G1_gc_verbose.txt");
DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
GCModel model = reader.read();
assertEquals("gc pause sum", 62.616796, model.getPause().getSum(), 0.000000001);
assertEquals("throughput", 47.7730602904, model.getThroughput(), 0.000000001);
assertEquals("longest pause", 0.1581177, model.getPause().getMax(), 0.000001);
assertEquals("total runtime", 119.8936724, model.getRunningTime(), 0.000001);
assertEquals("number of errors", 0, handler.getCount());
assertEquals("max interval", 0.211, model.getPauseInterval().getMax(), 0.000001);
assertEquals("avg interval", 0.048291297, model.getPauseInterval().average(), 0.0000001);
assertThat("count footprint after full gc", model.getFootprintAfterFullGC().getN(), is(5));
assertThat("max footprint after full gc", model.getFootprintAfterFullGC().getMax(), is(33*1024));
assertThat("tenured: count after concurrent sizes", model.getPostConcurrentCycleTenuredUsedSizes().getN(), is(242));
assertThat("tenured: max size after concurrent", model.getPostConcurrentCycleTenuredUsedSizes().getMax(), is(152576));
assertThat("count after concurrent sizes", model.getPostConcurrentCycleHeapUsedSizes().getN(), is(242));
assertThat("max size after concurrent", model.getPostConcurrentCycleHeapUsedSizes().getMax(), is(152576));
}