Howdy, I am trying to use the hotspot provider's object-alloc probe to display the number of objects allocated, and the number of bytes associated with these objects. When I run the attached [1] DTrace script to capture this information, I periodically see classes named "[" followed by a character:
$ dtrace objects.d [Ljava/lang/Object; 204216 java/util/HashMap$EntryIterator 262656 [Ljava/lang/reflect/Field; 300000 java/lang/String 480864 java/lang/reflect/Field 1620000 [I 1636752 [C 11512240 [B 15426184 Does anyone happen to know why some classes show up this way? Thanks for any insight, - Ryan -- UNIX Administrator http://prefetch.net [1] hotspot*:::object-alloc { @totalobjects[copyinstr(arg1,arg2)] = count(); @objectbytes[copyinstr(arg1,arg2)] = sum(arg3); } profile:::tick-60s { printf("Total objects allocated:\n"); printa(@totalobjects); printf("\n\nBytes allocated:\n"); printa(@objectbytes); } _______________________________________________ dtrace-discuss mailing list [email protected]
