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