Skip to content

Instantly share code, notes, and snippets.

@ecin
Created June 2, 2009 04:19
Show Gist options
  • Save ecin/122009 to your computer and use it in GitHub Desktop.
Save ecin/122009 to your computer and use it in GitHub Desktop.
/*
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