Created
February 11, 2019 10:55
-
-
Save chrisnas/b17bfe8ae62a94662267f5afe6d7024e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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