/** * Get the aggregate durations for this request. * * @return A map of phase to duration (ms) */ public static Map<String, Float> getAggregateDurations() { return RLOG.get().aggregateDurations(); }
/** * Exports current thread's request log object as a formatted string without resetting it. * * @return log object as a formatted string */ public static String export() { RequestLog current = RLOG.get(); record(new Durations(current.aggregateDurations())); record(new Threads(current.threadIds)); return LogFormatterProvider.getInstance().format(current.info); }