use of com.tagtraum.perf.gcviewer.model.GcResourceFile in project GCViewer by chewiebug.
the class TestDataReaderFactory method testJRockit1_5GenConMemStats.
@Test
public void testJRockit1_5GenConMemStats() throws Exception {
String fileName = "SampleJRockit1_5_20_memstats2.txt";
try (InputStream in = getInputStreamJRockit(fileName)) {
DataReader reader = new DataReaderFactory().getDataReader(new GcResourceFile(fileName), in);
assertDataReader(DataReaderJRockit1_6_0.class, reader.getClass());
}
}
use of com.tagtraum.perf.gcviewer.model.GcResourceFile in project GCViewer by chewiebug.
the class TestDataReaderFactory method testIBMJ9_R26.
@Test
public void testIBMJ9_R26() throws Exception {
String fileName = "SampleIBMJ9_R26_GAFP1_full_header.txt";
try (InputStream in = getInputStreamIBM(fileName)) {
DataReader reader = new DataReaderFactory().getDataReader(new GcResourceFile(fileName), in);
assertDataReader(DataReaderIBM_J9_R28.class, reader.getClass());
}
}
use of com.tagtraum.perf.gcviewer.model.GcResourceFile in project GCViewer by chewiebug.
the class TestDataReaderFactory method testJRockit1_4GenCon.
@Test
public void testJRockit1_4GenCon() throws Exception {
String fileName = "SampleJRockit1_4_2gencon.txt";
try (InputStream in = getInputStreamJRockit(fileName)) {
DataReader reader = new DataReaderFactory().getDataReader(new GcResourceFile(fileName), in);
assertDataReader(DataReaderJRockit1_5_0.class, reader.getClass());
}
}
use of com.tagtraum.perf.gcviewer.model.GcResourceFile in project GCViewer by chewiebug.
the class TestDataReaderFactory method testSun1_4_0.
@Test
public void testSun1_4_0() throws Exception {
// although the input is java 1.4 the datareader returned should be 1.6
// (DataReaderSun1_6_0 handles java 1.4, 1.5, 1.6, 1.7)
DataReaderFactory factory = new DataReaderFactory();
DataReader dr = factory.getDataReader(new GcResourceFile("byteArray"), new ByteArrayInputStream("2.23492e-006: [GC 1087K->462K(16320K), 0.0154134 secs]".getBytes()));
assertDataReader(DataReaderSun1_6_0.class, dr.getClass());
}
use of com.tagtraum.perf.gcviewer.model.GcResourceFile in project GCViewer by chewiebug.
the class TestDataReaderFactory method testJRockit1_5SimpleOpts.
@Test
public void testJRockit1_5SimpleOpts() throws Exception {
String fileName = "SampleJRockit1_5_12-gcreport-simpleopts-singlecon.txt";
try (InputStream in = getInputStreamJRockit(fileName)) {
DataReader reader = new DataReaderFactory().getDataReader(new GcResourceFile(fileName), in);
assertDataReader(DataReaderJRockit1_5_0.class, reader.getClass());
}
}
Aggregations