/** * Simple utility to read and dump statistic archive. */ public static void main(String args[]) throws IOException { String archiveName = null; if (args.length > 1) { System.err.println("Usage: [archiveName]"); System.exit(1); } else if (args.length == 1) { archiveName = args[0]; } else { archiveName = "statArchive.gfs"; } StatArchiveReader reader = new StatArchiveReader(archiveName); System.out.println("DEBUG: memory used = " + reader.getMemoryUsed()); reader.close(); }
/** * Simple utility to read and dump statistic archive. */ public static void main(String args[]) throws IOException { String archiveName = null; if (args.length > 1) { System.err.println("Usage: [archiveName]"); System.exit(1); } else if (args.length == 1) { archiveName = args[0]; } else { archiveName = "statArchive.gfs"; } StatArchiveReader reader = new StatArchiveReader(archiveName); System.out.println("DEBUG: memory used = " + reader.getMemoryUsed()); reader.close(); }
if (reader != null) { try { reader.close(); } catch (IOException ignore) {
if (reader != null) { try { reader.close(); } catch (IOException ignore) {