示例#1
0
 public override void Reset()
 {
     if (!this.enabled)
     {
         return;
     }
     try
     {
         OfficeProfiler.ResetAll();
     }
     catch (DllNotFoundException ex)
     {
     }
 }
示例#2
0
 public override void AddEndEvent(PerformanceEvent performanceEvent)
 {
     if (!this.profileOpened || !this.enabled)
     {
         return;
     }
     if (this.targetEvent != performanceEvent)
     {
         return;
     }
     try
     {
         OfficeProfiler.StopNow();
     }
     catch (DllNotFoundException ex)
     {
     }
 }