Created
December 15, 2018 09:49
-
-
Save chrisnas/f11f30fce7a036b882ba48b2dac32157 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
var source = userSession.Source; | |
source.NeedLoadedDotNetRuntimes(); | |
source.AddCallbackOnProcessStart((TraceProcess proc) => | |
{ | |
proc.AddCallbackOnDotNetRuntimeLoad((TraceLoadedDotNetRuntime runtime) => | |
{ | |
runtime.GCStart += (TraceProcess p, TraceGC gc) => | |
{ | |
// a GC is starting | |
}; | |
runtime.GCEnd += (TraceProcess p, TraceGC gc) => | |
{ | |
// a GC ends | |
}; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment