Exemple #1
0
 public override void Reset()
 {
     if (!this.enabled)
     {
         return;
     }
     try
     {
         OfficeProfiler.ResetAll();
     }
     catch (DllNotFoundException ex)
     {
     }
 }
Exemple #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)
     {
     }
 }