@Test public void testPerformance() throws SoarException { logManager.setLogLevel(LogLevel.warn); for(int i = 0; i < 1000; i++) { logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "trace", "This", "is", "a", "simple", "test", "case."}); } long start = System.currentTimeMillis(); for(int i = 0; i < 100000; i++) { logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "trace", "This", "is", "a", "simple", "test", "case."}); } long end = System.currentTimeMillis(); System.out.println("Total log time: " + (end-start)/1000.0); }
@Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); @Override String execute(SoarCommandContext context, String[] args); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); @Override String execute(SoarCommandContext context, String[] args);  }