Permalink
Browse files

fixing an issue where the garbage collection

script would show self-> instead of self-> for variables
  • Loading branch information...
1 parent 9a3e70c commit e4b155c1630382dcb03f6b40dbd99e78c525b279 @Machx committed Apr 26, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 DTrace.tmbundle/Snippets/Garbage Collection (10_6).tmSnippet
@@ -5,18 +5,18 @@
<key>content</key>
<string>garbage_collection\$target:::collection_begin
{
- self-&amp;gt;collectionString = (arg1 == 0 ? "full" : (arg1 == 1 ? "generational" : "local"));
- self-&amp;gt;collectionBeginTime = vtimestamp;
+ self-&gt;collectionString = (arg1 == 0 ? "full" : (arg1 == 1 ? "generational" : "local"));
+ self-&gt;collectionBeginTime = vtimestamp;
ustack();
}
garbage_collection\$target:::collection_end
{
- self-&amp;gt;collectionTotalTime = (vtimestamp - self-&amp;gt;collectionBeginTime)/1000;
+ self-&gt;collectionTotalTime = (vtimestamp - self-&gt;collectionBeginTime)/1000;
- printf("\nDuration Time (ms) %d",self-&amp;gt;collectionTotalTime);
+ printf("\nDuration Time (ms) %d",self-&gt;collectionTotalTime);
printf("\n%d Objects Reclaimed (%d bytes) on Thread %x",(int)arg1,(int)arg2,tid);
- printf("\nCollection Type: %s\n",self-&amp;gt;collectionString);
+ printf("\nCollection Type: %s\n",self-&gt;collectionString);
printf("Bytes in use %d",(int)arg4);
printf(" Number in Use %d",(int)arg3);
ustack();

0 comments on commit e4b155c

Please sign in to comment.