public static void main(String[] args) { CaliperMain.main(QuadrupedSupportPolygonTest.class, args); } }
CaliperOptions options = optionsInjector.getInstance(CaliperOptions.class); Module runnerModule = new ExperimentingRunnerModule(); Class<?> benchmarkClass = benchmarkClassForName(options.benchmarkClassName()); Injector injector = optionsInjector.createChildInjector( new BenchmarkClassModule(benchmarkClass), propogateIfCaliperException(e.getCause()); throw e; } catch (ProvisionException e) { propogateIfCaliperException(e.getCause()); for (Message message : e.getErrorMessages()) { propogateIfCaliperException(message.getCause());
/** * Entry point for the caliper benchmark runner application; run with {@code --help} for details. */ public static void main(String[] args) { PrintWriter stdout = new PrintWriter(System.out, true); PrintWriter stderr = new PrintWriter(System.err, true); int code = 1; // pessimism! try { exitlessMain(args, stdout, stderr); code = 0; } catch (InvalidCommandException e) { e.display(stderr); code = e.exitCode(); } catch (InvalidBenchmarkException e) { e.display(stderr); } catch (InvalidConfigurationException e) { e.display(stderr); } catch (Throwable t) { t.printStackTrace(stderr); stdout.println(); stdout.println("An unexpected exception has been thrown by the caliper runner."); stdout.println("Please see https://sites.google.com/site/caliperusers/issues"); } stdout.flush(); stderr.flush(); System.exit(code); }
CaliperOptions options = optionsInjector.getInstance(CaliperOptions.class); Module runnerModule = new ExperimentingRunnerModule(); Class<?> benchmarkClass = benchmarkClassForName(options.benchmarkClassName()); Injector injector = optionsInjector.createChildInjector( new BenchmarkClassModule(benchmarkClass), propogateIfCaliperException(e.getCause()); throw e; } catch (ProvisionException e) { propogateIfCaliperException(e.getCause()); for (Message message : e.getErrorMessages()) { propogateIfCaliperException(message.getCause());
/** * Entry point for the caliper benchmark runner application; run with {@code --help} for details. */ public static void main(String[] args) { PrintWriter stdout = new PrintWriter(System.out, true); PrintWriter stderr = new PrintWriter(System.err, true); int code = 1; // pessimism! try { exitlessMain(args, stdout, stderr); code = 0; } catch (InvalidCommandException e) { e.display(stderr); code = e.exitCode(); } catch (InvalidBenchmarkException e) { e.display(stderr); } catch (InvalidConfigurationException e) { e.display(stderr); } catch (Throwable t) { t.printStackTrace(stderr); stdout.println(); stdout.println("An unexpected exception has been thrown by the caliper runner."); stdout.println("Please see https://sites.google.com/site/caliperusers/issues"); } stdout.flush(); stderr.flush(); System.exit(code); }
public static void main(String[] args) { CaliperMain.main(XmlBenchmark.class, args); }
public static void main(String[] args) { CaliperMain.main(XmlBenchmark.class, args); }
public static void main(String[] args) { CaliperMain.main(RxTracerBenchmark.class, args); } }
public static void main(String[] args) throws Exception { CaliperMain.main(WhitespaceMatcherBenchmark.class, new String[] {}); }
/** * Your benchmark classes can implement main() like this: <pre> {@code * * public static void main(String[] args) { * CaliperMain.main(MyBenchmark.class, args); * }}</pre> * * Note that this method does invoke {@link System#exit} when it finishes. Consider {@link * #exitlessMain} if you don't want that. * * <p>Measurement is handled in a subprocess, so it will not use {@code benchmarkClass} itself; * the class is provided here only as a shortcut for specifying the full class <i>name</i>. The * class that gets loaded later could be completely different. */ public static void main(Class<?> benchmarkClass, String[] args) { main(concat(args, benchmarkClass.getName())); }
/** * Your benchmark classes can implement main() like this: <pre> {@code * * public static void main(String[] args) { * CaliperMain.main(MyBenchmark.class, args); * }}</pre> * * Note that this method does invoke {@link System#exit} when it finishes. Consider {@link * #exitlessMain} if you don't want that. * * <p>Measurement is handled in a subprocess, so it will not use {@code benchmarkClass} itself; * the class is provided here only as a shortcut for specifying the full class <i>name</i>. The * class that gets loaded later could be completely different. */ public static void main(Class<?> benchmarkClass, String[] args) { main(concat(args, benchmarkClass.getName())); }