use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderJRockit1_4_2 method testParseTsGCReportPrioThroughput.
@Test
public void testParseTsGCReportPrioThroughput() throws Exception {
DataReader reader = getDataReader1_4("SampleJRockit1_4_2ts-gcreport-gcpriothroughput.txt");
GCModel model = reader.read();
assertEquals("count", 70, model.size());
GCEvent event = (GCEvent) model.get(0);
assertEquals("timestamp", 20.021, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 32768, event.getPreUsed());
assertEquals("after", 5561, event.getPostUsed());
assertEquals("total", 32768, event.getTotal());
assertEquals("pause", 0.061, event.getPause(), 0.0000001);
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderJRockit1_4_2 method testParseTsGCReportSinglecon.
@Test
public void testParseTsGCReportSinglecon() throws Exception {
DataReader reader = getDataReader1_4("SampleJRockit1_4_2ts-gcreport-singlecon.txt");
GCModel model = reader.read();
assertEquals("count", 41, model.size());
GCEvent event = (GCEvent) model.get(0);
assertEquals("timestamp", 18.906, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 32260, event.getPreUsed());
assertEquals("after", 3997, event.getPostUsed());
assertEquals("total", 32768, event.getTotal());
assertEquals("pause", 0.020149, event.getPause(), 0.0000001);
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderJRockit1_4_2 method testParseTsGCReportGencon.
@Test
public void testParseTsGCReportGencon() throws Exception {
DataReader reader = getDataReader1_4("SampleJRockit1_4_2ts-gcreport-gencon.txt");
GCModel model = reader.read();
assertEquals("count", 63, model.size());
GCEvent event = (GCEvent) model.get(0);
assertEquals("timestamp", 13.594, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_NURSERY_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 13824, event.getPreUsed());
assertEquals("after", 4553, event.getPostUsed());
assertEquals("total", 32768, event.getTotal());
assertEquals("pause", 0.028308, event.getPause(), 0.0000001);
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderJRockit1_4_2 method testParseGenCon.
@Test
public void testParseGenCon() throws Exception {
// TODO refactor JRockit DataReader
DataReader reader = getDataReader1_5("SampleJRockit1_4_2gencon.txt");
GCModel model = reader.read();
assertEquals("count", 123, model.size());
GCEvent event = (GCEvent) model.get(0);
assertEquals("timestamp", 77.737, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_NURSERY_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 630435, event.getPreUsed());
assertEquals("after", 183741, event.getPostUsed());
assertEquals("total", 1048576, event.getTotal());
assertEquals("pause", 0.566158, event.getPause(), 0.0000001);
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderJRockit1_5_0 method testGenCon.
@Test
public void testGenCon() throws Exception {
DataReader reader = getDataReader1_5(new GcResourceFile("SampleJRockit1_5_12_gencon.txt"));
GCModel model = reader.read();
assertEquals("count", 8, model.size());
GCEvent event = (GCEvent) model.get(0);
assertEquals("timestamp", 6.038, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 3089328, event.getPreUsed());
assertEquals("after", 352551, event.getPostUsed());
assertEquals("total", 3145728, event.getTotal());
assertEquals("pause", 0.1186, event.getPause(), 0.0000001);
}
Aggregations