Search in sources :

Example 1 with IntData

use of com.tagtraum.perf.gcviewer.math.IntData 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);
}
Also used : DataReader(com.tagtraum.perf.gcviewer.imp.DataReader) DataReaderFactory(com.tagtraum.perf.gcviewer.imp.DataReaderFactory) IntData(com.tagtraum.perf.gcviewer.math.IntData) GcResourceFile(com.tagtraum.perf.gcviewer.model.GcResourceFile) FileInputStream(java.io.FileInputStream)

Aggregations

DataReader (com.tagtraum.perf.gcviewer.imp.DataReader)1 DataReaderFactory (com.tagtraum.perf.gcviewer.imp.DataReaderFactory)1 IntData (com.tagtraum.perf.gcviewer.math.IntData)1 GcResourceFile (com.tagtraum.perf.gcviewer.model.GcResourceFile)1 FileInputStream (java.io.FileInputStream)1