config = new HistogramLogProcessorConfiguration(args); if (config.inputFileName != null) { logReader = new HistogramLogReader(config.inputFileName); } else { logReader = new HistogramLogReader(System.in);
static HistogramLogReader createHistogramLogReader(File latencyFile, String testName) { try { return new HistogramLogReader(latencyFile); } catch (IOException e) { throw new CommandLineExitException("Could not initialize HistogramLogReader for test " + testName, e); } }
/** * Construct a {@link org.HdrHistogram.HistogramLogProcessor} with the given arguments * (provided in command line style). * <pre> * [-h] help * [-csv] Use CSV format for output log files * [-i logFileName] File name of Histogram Log to process (default is standard input) * [-o outputFileName] File name to output to (default is standard output) * (will replace occurrences of %pid and %date with appropriate information) * [-start rangeStartTimeSec] The start time for the range in the file, in seconds (default 0.0) * [-end rangeEndTimeSec] The end time for the range in the file, in seconds (default is infinite) * [-outputValueUnitRatio r] The scaling factor by which to divide histogram recorded values units * in output. [default = 1000000.0 (1 msec in nsec)]" * </pre> * * @param args command line arguments * @throws FileNotFoundException if specified input file is not found */ public HistogramLogProcessor(final String[] args) throws FileNotFoundException { this.setName("HistogramLogProcessor"); config = new HistogramLogProcessorConfiguration(args); if (config.inputFileName != null) { logReader = new HistogramLogReader(config.inputFileName); } else { logReader = new HistogramLogReader(System.in); } }
config = new HistogramLogProcessorConfiguration(args); if (config.inputFileName != null) { logReader = new HistogramLogReader(config.inputFileName); } else { logReader = new HistogramLogReader(System.in);
HistogramLogReader reader = new HistogramLogReader(logFile);
for (int k = 1; k < args.length; k++) { String inputFile = args[k]; readers[k - 1] = new HistogramLogReader(inputFile);