/** Start using the passed in key. Note activity stats are incremented */ public static Monitor start(MonKey key) { return factory.start(key); }
/** Start using the passed in key. Note activity stats are incremented */ public static Monitor start(MonKey key) { return factory.start(key); }
/** Return a timing monitor with units in milliseconds. stop() should be called on the returned monitor to indicate the time * that the process took. Note time monitors keep the starttime as an instance variable and so every time you want to use a TimeMonitor * you should get a new instance. * * <p>Sample call:</p> * <pre>{@code * Monitor mon=MonitorFactory.start("pageHits"); * ...code being timed... * mon.stop(); * }</pre> * */ public static Monitor start(String label) { return factory.start(label); }
/** Return a timing monitor with units in milliseconds, that is not aggregated into the jamon stats. stop() should be called on the returned monitor to indicate the time * that the process took. Note time monitors keep the starttime as an instance variable and so every time you want to use a TimeMonitor * you should get a new instance. * * <p>Sample call:</p> * <pre>{@code * Monitor mon=MonitorFactory.start(); * ...code being timed... * mon.stop(); * }</pre> * */ public static Monitor start() { return factory.start(); }
/** <p>Return a timing monitor with units in milliseconds. stop() should be called on the returned monitor to indicate the time * that the process took. Note time monitors keep the starttime as an instance variable and so every time you want to use a TimeMonitor * you should get a new instance. </p> * * <b>Sample call:</b><br> * <blockquote><code><pre> * Monitor mon=MonitorFactory.start("pageHits");<br> ...code being timed...<br> mon.stop(); * *</pre></code></blockquote><br><br> * */ public static Monitor start(String label) { return factory.start(label); }
/** <p>Return a timing monitor with units in milliseconds, that is not aggregated into the jamon stats. stop() should be called on the returned monitor to indicate the time * that the process took. Note time monitors keep the starttime as an instance variable and so every time you want to use a TimeMonitor * you should get a new instance. </p> * * <b>Sample call:</b><br> * <blockquote><code><pre> * Monitor mon=MonitorFactory.start();<br> ...code being timed...<br> mon.stop(); * *</pre></code></blockquote><br><br> * */ public static Monitor start() { return factory.start(); }
/** * Start. * * @param label * the label * @param rootLabel * the root label * @return the profile monitor */ public static ProfileMonitor start(final String label, final String rootLabel) { MonitorFactoryInterface factory = getMonitorFactory(rootLabel); Monitor mon = factory.start(label); return new JamonMonitor(mon); }