public void Dispose() { if (this._end != ((Microsoft.Internal.Performance.CodeMarkerEvent) 0)) { Microsoft.Internal.Performance.CodeMarkers.Instance.CodeMarker(this._end); this._end = (Microsoft.Internal.Performance.CodeMarkerEvent) 0; } }
public void CodeMarker(Microsoft.Internal.Performance.CodeMarkerEvent nTimerID) { if (this.fUseCodeMarkers) { try { NativeMethods.DllPerfCodeMarker((int)nTimerID, null, 0); } catch (DllNotFoundException) { this.fUseCodeMarkers = false; } } }
public void CodeMarkerEx(Microsoft.Internal.Performance.CodeMarkerEvent nTimerID, byte[] aBuff) { if (aBuff == null) { throw new ArgumentNullException("aBuff"); } if (this.fUseCodeMarkers) { try { NativeMethods.DllPerfCodeMarker((int)nTimerID, aBuff, aBuff.Length); } catch (DllNotFoundException) { this.fUseCodeMarkers = false; } } }
public CodeMarkerStartEnd(Microsoft.Internal.Performance.CodeMarkerEvent begin, Microsoft.Internal.Performance.CodeMarkerEvent end) { Microsoft.Internal.Performance.CodeMarkers.Instance.CodeMarker(begin); this._end = end; }