/** * Set the maximum number of monitors that JAMon can store. This can be set to reduce the jamon memory footprint. By default * JAMon's size is unlimited. * * @param maxMonitors maximum number of monitors that JAMon can store. */ public static void setMaxNumMonitors(int maxMonitors) { factory.setMaxNumMonitors(maxMonitors); }
/** * Sets the max num monitors. * * @param maxMonitors * the max monitors * @param rootMonitor * the root monitor * @since 1.6 */ public static void setMaxNumMonitors(final int maxMonitors, final ProfileMonitor rootMonitor) { MonitorFactoryInterface factory = getMonitorFactory(rootMonitor.getLabel()); factory.setMaxNumMonitors(maxMonitors); }