Created
February 11, 2019 10:58
-
-
Save chrisnas/419e8637d4b9a7d010aea6c611a4e143 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
public static EtwGcLog GetProcessGcLog(int pid) | |
{ | |
EtwGcLog gcLog = null; | |
try | |
{ | |
var process = Process.GetProcessById(pid); | |
process.Dispose(); | |
gcLog = new EtwGcLog(pid); | |
} | |
catch (System.ArgumentException) | |
{ | |
// there is no running process with the given pid | |
} | |
return gcLog; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment