}
printTimings(meth.getName());
Class clazz = meth.getDeclaringClass();
PerformanceReporting pr = (PerformanceReporting) clazz.getAnnotation(PerformanceReporting.class);
if (pr != null) {
String file = pr.baseFilename();
Class<? extends PerformanceReportExporter> exporterClazz = pr.exporter();
try {
PerformanceReportExporter exporter = exporterClazz.newInstance();
exporter.setBaseFile(file);
exporter.setRolling(pr.rolling());
exporter.export(timings,result);
}
catch (Throwable e) {
System.err.println("Error writing to reporting file " + file +" : " + e.getMessage());
e.printStackTrace();