public void Dispose() { if (this._end != ((CodeMarkerEvent)0)) { CodeMarkers.Instance.CodeMarker(this._end); this._end = (CodeMarkerEvent)0; } }
public void Dispose() { if (this._end != ((CodeMarkerEvent) 0)) { CodeMarkers.Instance.CodeMarker(this._end); this._end = (CodeMarkerEvent) 0; } }
public void Dispose() { if (this._end == (CodeMarkerEvent)0) { return; } CodeMarkers.Instance.CodeMarker(this._end); this._end = (CodeMarkerEvent)0; }
public void CodeMarker(CodeMarkerEvent nTimerID) { if (this.fUseCodeMarkers) { try { NativeMethods.DllPerfCodeMarker((int)nTimerID, null, 0); } catch (DllNotFoundException) { this.fUseCodeMarkers = false; } } }
public void CodeMarker(CodeMarkerEvent nTimerID) { if (this.fUseCodeMarkers) { try { NativeMethods.DllPerfCodeMarker((int) nTimerID, null, 0); } catch (DllNotFoundException) { this.fUseCodeMarkers = false; } } }
public void CodeMarker(CodeMarkerEvent nTimerID) { if (!this.fUseCodeMarkers) { return; } try { CodeMarkers.NativeMethods.DllPerfCodeMarker((int)nTimerID, (byte[])null, 0); } catch (DllNotFoundException ex) { this.fUseCodeMarkers = false; } }
public void CodeMarkerEx(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 void CodeMarkerEx(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(CodeMarkerEvent begin, CodeMarkerEvent end) { CodeMarkers.Instance.CodeMarker(begin); this._end = end; }
public PerformanceMark(string description, CodeMarkerEvent beginEvent, CodeMarkerEvent endEvent) { this._description = description; this._beginEvent = beginEvent; this._endEvent = endEvent; }