Skip to content

Instantly share code, notes, and snippets.

@chrisnas
Created February 21, 2019 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisnas/3609f0d3d4b9ad1248434f8e9712be38 to your computer and use it in GitHub Desktop.
Save chrisnas/3609f0d3d4b9ad1248434f8e9712be38 to your computer and use it in GitHub Desktop.
private bool IsMonitoredEvent(TraceEvent traceEvent)
{
var isMonitored = traceEvent.ProcessID == _monitoredPid;
if (isMonitored)
{
NotifyProcessedEvent(traceEvent);
}
return isMonitored;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment