public void printMeasures() {
Iterator aggregations = MonitoringController.getAggregationsSet().iterator();
while (aggregations.hasNext()) {
MeasureAggregation aggregation = (MeasureAggregation) aggregations.next();
System.out.println("_____________________________________________________");
System.out.println("Aggregation=" + aggregation.getName());
Iterator measures = aggregation.getMeasureSet().iterator();
while (measures.hasNext()) {
MonitoringMeasure measure = (MonitoringMeasure)measures.next();
System.out.print("Measure=" + measure.getName() + " callings="+ measure.getRootValue().getCallings() + " Time elements=" + measure.getValues().size());
if (measure.getRootValue().getCallings()!=0) {
System.out.println(" avg time=" + (measure.getRootValue().getTotalTime()/measure.getRootValue().getCallings()));