Skip to content

Instantly share code, notes, and snippets.

@chrisnas
Created February 11, 2019 10:55
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/b17bfe8ae62a94662267f5afe6d7024e to your computer and use it in GitHub Desktop.
Save chrisnas/b17bfe8ae62a94662267f5afe6d7024e to your computer and use it in GitHub Desktop.
EtwGcLog gcLog = EtwGcLog.GetProcessGcLog(pid);
var filename = GetUniqueFilename(pid);
gcLog.Start(filename);
// in a simple Console application, wait for the user to press ENTER.
// in a more realistic case, keep track of the EtwLog instance and
// call Stop to end the processing of events when needed.
gcLog.Stop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment