/** * Start a timer of the given string name for all todos and the current * thread. If no such timer exists yet, then it will be newly created. * * @param timerName * the name of the timer */ public static void startNamedTimer(String timerName) { getNamedTimer(timerName).start(); }
/** * Start a timer of the given string name for all todos and the current * thread. If no such timer exists yet, then it will be newly created. * * @param timerName * the name of the timer */ public static void startNamedTimer(String timerName) { getNamedTimer(timerName).start(); }
/** * Start a timer of the given string name for all todos and the current * thread. If no such timer exists yet, then it will be newly created. * * @param timerName * the name of the timer */ public static void startNamedTimer(String timerName) { getNamedTimer(timerName).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags */ public static void startNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags */ public static void startNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags */ public static void startNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags */ public static void startNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).start(); }
/** * Start a timer of the given string name for all todos and the current * thread. If no such timer exists yet, then it will be newly created. * * @param timerName * the name of the timer */ public static void startNamedTimer(String timerName) { getNamedTimer(timerName).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags * @param threadId * of the thread to track, or 0 if only system clock should be * tracked */ public static void startNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags * @param threadId * of the thread to track, or 0 if only system clock should be * tracked */ public static void startNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags * @param threadId * of the thread to track, or 0 if only system clock should be * tracked */ public static void startNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).start(); }
/** * Start a timer of the given string name for the current thread. If no such * timer exists yet, then it will be newly created. * * @param timerName * the name of the timer * @param todoFlags * @param threadId * of the thread to track, or 0 if only system clock should be * tracked */ public static void startNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).start(); }
/** * Log the start of a particular operation with the given priority. This * method should be used for long-running tasks and is mainly intended. * Multiple threads can independently log operations of the same name, but * (obviously) no single thread should use the same operation name to record * the start and end of overlapping code. * * @param operationName * @param logger * @param priority */ public static void logOperationStart(String operationName, Logger logger, Priority priority) { if (logger.isEnabledFor(priority)) { logger.log(priority, operationName + " started"); ElkTimer timer = ElkTimer.getNamedTimer(operationName, ElkTimer.RECORD_WALLTIME); timer.reset(); // needed in case this was done before timer.start(); } }
/** * Log the start of a particular operation with the given priority. This * method should be used for long-running tasks and is mainly intended. * Multiple threads can independently log operations of the same name, but * (obviously) no single thread should use the same operation name to record * the start and end of overlapping code. * * @param operationName * @param logger * @param priority */ public static void logOperationStart(String operationName, Logger logger, LogLevel priority) { if (LoggerWrap.isEnabledFor(logger, priority)) { LoggerWrap.log(logger, priority, operationName + " started"); ElkTimer timer = ElkTimer.getNamedTimer(operationName, ElkTimer.RECORD_WALLTIME); timer.reset(); // needed in case this was done before timer.start(); } }
/** * Log the start of a particular operation with the given priority. This * method should be used for long-running tasks and is mainly intended. * Multiple threads can independently log operations of the same name, but * (obviously) no single thread should use the same operation name to record * the start and end of overlapping code. * * @param operationName * @param logger * @param priority */ public static void logOperationStart(String operationName, Logger logger, LogLevel priority) { if (LoggerWrap.isEnabledFor(logger, priority)) { LoggerWrap.log(logger, priority, operationName + " started"); ElkTimer timer = ElkTimer.getNamedTimer(operationName, ElkTimer.RECORD_WALLTIME); timer.reset(); // needed in case this was done before timer.start(); } }
/** * Log the start of a particular operation with the given priority. This * method should be used for long-running tasks and is mainly intended. * Multiple threads can independently log operations of the same name, but * (obviously) no single thread should use the same operation name to record * the start and end of overlapping code. * * @param operationName * @param logger * @param priority */ public static void logOperationStart(String operationName, Logger logger, LogLevel priority) { if (LoggerWrap.isEnabledFor(logger, priority)) { LoggerWrap.log(logger, priority, operationName + " started"); ElkTimer timer = ElkTimer.getNamedTimer(operationName, ElkTimer.RECORD_WALLTIME); timer.reset(); // needed in case this was done before timer.start(); } }
@Override public void execute(ReasonerStage stage) throws ElkException { super.execute(stage); // FIXME: get rid of casts try { for (PostProcessingStage ppStage : instantiate( postProcesingMap.get(stage.getClass()), ((AbstractReasonerStage) stage).reasoner)) { ElkTimer.getNamedTimer(ppStage.getName()).start(); ppStage.execute(); ElkTimer.getNamedTimer(ppStage.getName()).stop(); } } catch (Exception e) { throw new ElkRuntimeException(e); } }