/** * Log the current total memory usage using DEBUG priority. * * @param logger */ public static void logMemoryUsage(Logger logger) { logMemoryUsage(logger, LogLevel.DEBUG); }
/** * Log the current total memory usage using DEBUG priority. * * @param logger */ public static void logMemoryUsage(Logger logger) { logMemoryUsage(logger, LogLevel.DEBUG); }
/** * Log the current total memory usage using DEBUG priority. * * @param logger */ public static void logMemoryUsage(Logger logger) { logMemoryUsage(logger, LogLevel.DEBUG); }
/** * Log the current total memory usage using DEBUG priority. * * @param logger */ public static void logMemoryUsage(Logger logger) { logMemoryUsage(logger, Level.DEBUG); }
@Override public void execute(ReasonerStage stage) throws ElkException { LOGGER_.debug("{} stage:", stage); Statistics.logOperationStart(stage.getName(), LOGGER_); try { stage.preExecute(); stage.execute(); stage.printInfo(); stage.postExecute(); } catch (ElkInterruptedException e) { LOGGER_.debug("{} was interrupted.", stage); stage.printInfo(); throw e; } finally { Statistics.logOperationFinish(stage.getName(), LOGGER_); Statistics.logMemoryUsage(LOGGER_); } LOGGER_.debug("{}: done.", stage); } }
@Override public void execute(ReasonerStage stage) throws ElkException { LOGGER_.debug("{} stage:", stage); Statistics.logOperationStart(stage.getName(), LOGGER_); try { stage.preExecute(); stage.execute(); stage.printInfo(); stage.postExecute(); } catch (ElkInterruptedException e) { LOGGER_.debug("{} was interrupted.", stage); stage.printInfo(); throw e; } finally { Statistics.logOperationFinish(stage.getName(), LOGGER_); Statistics.logMemoryUsage(LOGGER_); } LOGGER_.debug("{}: done.", stage); } }
@Override public void execute(ReasonerStage stage) throws ElkException { LOGGER_.debug("{} stage:", stage); Statistics.logOperationStart(stage.getName(), LOGGER_); try { stage.preExecute(); stage.execute(); stage.printInfo(); stage.postExecute(); } catch (ElkInterruptedException e) { LOGGER_.debug("{} was interrupted.", stage); stage.printInfo(); throw e; } finally { Statistics.logOperationFinish(stage.getName(), LOGGER_); Statistics.logMemoryUsage(LOGGER_); } LOGGER_.debug("{}: done.", stage); } }