1   package uut;
2   
3   import net.sf.jour.rt.agent.Elog;
4   import net.sf.jour.rt.agent.MapedEventID;
5   import net.sf.jour.rt.agent.ProfilerEvent;
6   
7   public class MainInstumented {
8   
9       public static void main(String[] args) throws Throwable {
10          System.out.println("main enter");
11          method1();
12          System.out.println("main exit");
13      }
14  
15      public static void method1() throws Throwable {
16          if (Elog.ON) {
17              Elog.logEvent(new ProfilerEvent(0, null, new MapedEventID(1)));
18          }
19  
20          try {
21              System.out.println("method1()");
22  
23              if (Elog.ON) {
24                  Elog.logEvent(new ProfilerEvent(1, null, new MapedEventID(1)));
25              }
26  
27          } catch (Throwable throwable1) {
28  
29              if (Elog.ON) {
30                  Elog.logEvent(new ProfilerEvent(1, throwable1, new MapedEventID(1)));
31              }
32              throw throwable1;
33          }
34  
35      }
36  
37  }