use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderIBM_J9_R28 method testConcurrentMinimal.
@Test
public void testConcurrentMinimal() throws Exception {
// there are minimal concurrent blocks, that don't contain any information, that the parser can use (at least, at the moment)
TestLogHandler handler = new TestLogHandler();
handler.setLevel(Level.WARNING);
GCResource gcResource = new GcResourceFile("SampleIBMJ9_R28_concurrentMinimal.txt");
gcResource.getLogger().addHandler(handler);
DataReader reader = getDataReader(gcResource);
GCModel model = reader.read();
assertThat("model size", model.size(), is(0));
assertThat("number of errors", handler.getCount(), is(0));
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderIBM_J9_R28 method testConcurrentCollection.
@Test
@Ignore
public void testConcurrentCollection() throws Exception {
TestLogHandler handler = new TestLogHandler();
handler.setLevel(Level.WARNING);
GCResource gcResource = new GcResourceFile("SampleIBMJ9_R28_concurrent_collection.txt");
gcResource.getLogger().addHandler(handler);
DataReader reader = getDataReader(gcResource);
GCModel model = reader.read();
assertThat("model size", model.size(), is(1));
assertThat("duration", model.get(0).getPause(), closeTo(1.182375, 0.00000001));
assertThat("number of errors", handler.getCount(), is(0));
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderIBM_J9_R28 method testSysGlobal.
@Test
public void testSysGlobal() throws Exception {
TestLogHandler handler = new TestLogHandler();
handler.setLevel(Level.WARNING);
GCResource gcResource = new GcResourceFile("SampleIBMJ9_R28_sys_global.txt");
gcResource.getLogger().addHandler(handler);
DataReader reader = getDataReader(gcResource);
GCModel model = reader.read();
assertThat("model size", model.size(), is(1));
GCEvent event = (GCEvent) model.get(0);
assertThat("pause", event.getPause(), closeTo(0.097756, 0.0000001));
assertThat("type", event.getTypeAsString(), equalTo("sys explicit global; nursery; tenure"));
assertThat("number of errors", handler.getCount(), is(0));
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderIBM_J9_R28 method testAfGlobal.
@Test
public void testAfGlobal() throws Exception {
TestLogHandler handler = new TestLogHandler();
handler.setLevel(Level.WARNING);
GCResource gcResource = new GcResourceFile("SampleIBMJ9_R28_af_global.txt");
gcResource.getLogger().addHandler(handler);
DataReader reader = getDataReader(gcResource);
GCModel model = reader.read();
assertThat("model size", model.size(), is(1));
GCEvent event = (GCEvent) model.get(0);
assertThat("pause", event.getPause(), closeTo(1.255648, 0.0000001));
assertThat("type", event.getTypeAsString(), equalTo("af global; tenure"));
assertThat("number of errors", handler.getCount(), is(0));
}
use of com.tagtraum.perf.gcviewer.model.GCModel in project GCViewer by chewiebug.
the class TestDataReaderJRockit1_4_2 method testParseParallel.
@Test
public void testParseParallel() throws Exception {
// TODO refactor JRockit DataReader
DataReader reader = getDataReader1_5("SampleJRockit1_4_2parallel.txt");
GCModel model = reader.read();
assertEquals("count", 92, model.size());
GCEvent event = (GCEvent) model.get(0);
assertEquals("timestamp", 226.002, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 1048576, event.getPreUsed());
assertEquals("after", 133204, event.getPostUsed());
assertEquals("total", 1048576, event.getTotal());
assertEquals("pause", 0.544511, event.getPause(), 0.0000001);
}
Aggregations