/** * Reset 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 resetNamedTimer(String timerName) { getNamedTimer(timerName).reset(); }
/** * Reset 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 resetNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).reset(); }
/** * Reset 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 resetNamedTimer(String timerName) { getNamedTimer(timerName).reset(); }
/** * Reset 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 resetNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).reset(); }
/** * Reset 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 resetNamedTimer(String timerName) { getNamedTimer(timerName).reset(); }
/** * Reset 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 resetNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).reset(); }
/** * Reset 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 resetNamedTimer(String timerName) { getNamedTimer(timerName).reset(); }
/** * Reset 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 resetNamedTimer(String timerName, int todoFlags) { getNamedTimer(timerName, todoFlags).reset(); }
/** * Reset a timer of the given string name for the given 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 resetNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).reset(); }
/** * Reset a timer of the given string name for the given 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 resetNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).reset(); }
/** * Reset a timer of the given string name for the given 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 resetNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).reset(); }
/** * Reset a timer of the given string name for the given 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 resetNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).reset(); }
/** * 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(); } }