@Override public MonitorComposite get(String instanceKey) { if (INSTANCE.equalsIgnoreCase(instanceKey)) { return MonitorFactory.getRootMonitor(); } return null; }
/** * Create a performance report */ public String createReport() throws Exception { return MonitorFactory.getRootMonitor().getReport(); } }
/** * Create a performance report. * * @return the textual performance report * @throws Exception generating the report failed */ public String createReport() throws Exception { return MonitorFactory.getRootMonitor().getReport(); }
/** * Create a performance report. * * @return the textual performance report * @throws Exception generating the report failed */ public String createReport() throws Exception { return MonitorFactory.getRootMonitor().getReport(); }
/** * Create a performance report */ public String createReport() throws Exception { return MonitorFactory.getRootMonitor().getReport(); } }
/** * @throws IOException */ private void outputStats() throws IOException { if (logger.isInfoEnabled()) { logger.info("producing html output and writing to '" + reportOutputLocation + "'"); } if (outfile == null) throw new IllegalStateException("Outfile parameter must not be null!"); String report = MonitorFactory.getRootMonitor().getReport(); FileUtils.writeStringToFile(outfile, report); if (logger.isDebugEnabled()) { logger.debug("html output successfully written to '" + reportOutputLocation + "'"); } }
/** * Returns all the {@link Monitor}s in this repository. * * @return List of all {@link Monitor}s or an empty list if there aren't any. */ List<Monitor> getAll() { Monitor[] monitors = MonitorFactory.getRootMonitor().getMonitors(); if (monitors != null) { return Arrays.asList(monitors); } else { return new ArrayList<Monitor>(0); } }
/** * Gets the monitors. * * @return the monitors */ public static ProfileMonitor[] getMonitors() { MonitorComposite rootMonitor = MonitorFactory.getRootMonitor(); Monitor[] monitors = rootMonitor.getMonitors(); if (monitors == null) { return new JamonMonitor[0]; } ProfileMonitor[] profMonitors = new JamonMonitor[monitors.length]; for (int i = 0; i < monitors.length; i++) { profMonitors[i] = new JamonMonitor(monitors[i]); } return profMonitors; }
Object[][] data = Misc.sort(MonitorFactory.getRootMonitor().getBasicData(), 3, "desc"); for (Object[] row : data) { if (((Double) row[1]) > 0) {
@Override public void put(String instanceKey) { try { createDirectory(); String fileName = getFileName(instanceKey); MonitorComposite monitorComposite = MonitorFactory.getRootMonitor().setInstanceName(instanceKey); SerializationUtils.serializeToFile(monitorComposite, fileName); } catch (IOException e) { throw new RuntimeException("Exception while trying to save jamondata", e); } }
@Override public void put(String key) { intitialize(); jamonDataMap.set(key, MonitorFactory.getRootMonitor().setInstanceName(key)); }
out.println("Monitors:"); out.println("~~~~~~~~"); List<Monitor> monitors = new ArrayList<>(asList(MonitorFactory.getRootMonitor().getMonitors())); monitors.sort((m1, m2) -> Double.compare(m2.getTotal(), m1.getTotal())); int lm = 10;
.getExceptionDetail()); printDebug(testCounter + ".3) " + "jamon data - " + message, MonitorFactory.getRootMonitor().getBasicData());