Created
June 2, 2009 04:19
-
-
Save ecin/122009 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
/* | |
Probes fire when a Ruby process starts and ends garbage collection. Perhaps similar to mri_instrumentation's implementation?_ | |
*/ | |
pid$1::rb_gc:entry | |
{ | |
printf("Garbage Collection has started!\t"); | |
trace(timestamp); | |
printf("\n"); | |
} | |
pid$1::rb_gc:return | |
{ | |
printf("Garbage Collection has ended!\t"); | |
trace(timestamp); | |
printf("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment