use of com.tagtraum.perf.gcviewer.imp.DataReader in project GCViewer by chewiebug.
the class ImportPerformanceTest method main.
public static void main(String[] args) throws IOException, InterruptedException {
IntData performanceData = new IntData();
for (int i = 0; i < 10; i++) {
long start = System.currentTimeMillis();
DataReader dataReader = new DataReaderFactory().getDataReader(new GcResourceFile(args[0]), new FileInputStream(args[0]));
dataReader.read();
performanceData.add((int) (System.currentTimeMillis() - start));
}
printIntData(args[0], performanceData);
}
Aggregations