1 1.1 christos The following are examples of j_events.d. 2 1.1 christos 3 1.1 christos This counts events from all Java processes on the system with hotspot 4 1.1 christos provider support (1.6.0). Some events such as method calls are only visible 5 1.1 christos when using the flag "+ExtendedDTraceProbes". eg, 6 1.1 christos java -XX:+ExtendedDTraceProbes classfile 7 1.1 christos 8 1.1 christos Here you can see it running while the program Code/Java/Func_abc 9 1.1 christos 10 1.1 christos # j_events.d 11 1.1 christos Tracing... Hit Ctrl-C to end. 12 1.1 christos ^C 13 1.1 christos 14 1.1 christos PID EVENT COUNT 15 1.1 christos 311379 AttachCurrentThread-entry 1 16 1.1 christos 311379 AttachCurrentThread-return 1 17 1.1 christos 311379 CallIntMethod-entry 1 18 1.1 christos 311379 CallIntMethod-return 1 19 1.1 christos 311379 CallStaticBooleanMethod-entry 1 20 1.1 christos 311379 CallStaticBooleanMethod-return 1 21 1.1 christos 311379 CallStaticObjectMethod-entry 1 22 1.1 christos 311379 CallStaticObjectMethod-return 1 23 1.1 christos 311379 CallStaticObjectMethodV-entry 1 24 1.1 christos 311379 CallStaticObjectMethodV-return 1 25 1.1 christos 311379 CallStaticVoidMethod-entry 1 26 1.1 christos 311379 CallStaticVoidMethod-return 1 27 1.1 christos 311379 CreateJavaVM-entry 1 28 1.1 christos 311379 CreateJavaVM-return 1 29 1.1 christos 311379 DestroyJavaVM-entry 1 30 1.1 christos 311379 DestroyJavaVM-return 1 31 1.1 christos 311379 DetachCurrentThread-entry 1 32 1.1 christos 311379 DetachCurrentThread-return 1 33 1.1 christos 311379 ExceptionCheck-entry 1 34 1.1 christos 311379 ExceptionCheck-return 1 35 1.1 christos 311379 ExceptionClear-entry 1 36 1.1 christos 311379 ExceptionClear-return 1 37 1.1 christos 311379 GetDefaultJavaVMInitArgs-entry 1 38 1.1 christos 311379 GetDefaultJavaVMInitArgs-return 1 39 1.1 christos 311379 GetJavaVM-entry 1 40 1.1 christos 311379 GetJavaVM-return 1 41 1.1 christos 311379 GetStringRegion-entry 1 42 1.1 christos 311379 GetStringRegion-return 1 43 1.1 christos 311379 NewByteArray-entry 1 44 1.1 christos 311379 NewByteArray-return 1 45 1.1 christos 311379 NewObject-entry 1 46 1.1 christos 311379 NewObject-return 1 47 1.1 christos 311379 NewObjectV-entry 1 48 1.1 christos 311379 NewObjectV-return 1 49 1.1 christos 311379 SetBooleanField-entry 1 50 1.1 christos 311379 SetBooleanField-return 1 51 1.1 christos 311379 ToReflectedMethod-entry 1 52 1.1 christos 311379 ToReflectedMethod-return 1 53 1.1 christos 311379 vm-init-begin 1 54 1.1 christos 311379 vm-init-end 1 55 1.1 christos 311379 vm-shutdown 1 56 1.1 christos 311379 NewGlobalRef-entry 2 57 1.1 christos 311379 NewGlobalRef-return 2 58 1.1 christos 311379 monitor-wait 2 59 1.1 christos 311379 GetStaticFieldID-entry 3 60 1.1 christos 311379 GetStaticFieldID-return 3 61 1.1 christos 311379 NewObjectArray-entry 3 62 1.1 christos 311379 NewObjectArray-return 3 63 1.1 christos 311379 SetStaticObjectField-entry 3 64 1.1 christos 311379 SetStaticObjectField-return 3 65 1.1 christos 311379 GetStaticMethodID-entry 4 66 1.1 christos 311379 GetStaticMethodID-return 4 67 1.1 christos 311379 EnsureLocalCapacity-entry 5 68 1.1 christos 311379 EnsureLocalCapacity-return 5 69 1.1 christos 311379 SetByteArrayRegion-entry 5 70 1.1 christos 311379 SetByteArrayRegion-return 5 71 1.1 christos 311379 SetLongField-entry 5 72 1.1 christos 311379 SetLongField-return 5 73 1.1 christos 311379 GetMethodID-entry 6 74 1.1 christos 311379 GetMethodID-return 6 75 1.1 christos 311379 GetObjectArrayElement-entry 6 76 1.1 christos 311379 GetObjectArrayElement-return 6 77 1.1 christos 311379 GetSuperclass-entry 6 78 1.1 christos 311379 GetSuperclass-return 6 79 1.1 christos 311379 thread-start 6 80 1.1 christos 311379 SetIntField-entry 8 81 1.1 christos 311379 SetIntField-return 8 82 1.1 christos 311379 GetArrayLength-entry 9 83 1.1 christos 311379 GetArrayLength-return 9 84 1.1 christos 311379 GetByteArrayRegion-entry 9 85 1.1 christos 311379 GetByteArrayRegion-return 9 86 1.1 christos 311379 RegisterNatives-entry 9 87 1.1 christos 311379 RegisterNatives-return 9 88 1.1 christos 311379 GetObjectClass-entry 10 89 1.1 christos 311379 GetObjectClass-return 10 90 1.1 christos 311379 FindClass-entry 11 91 1.1 christos 311379 FindClass-return 11 92 1.1 christos 311379 SetObjectArrayElement-entry 12 93 1.1 christos 311379 SetObjectArrayElement-return 12 94 1.1 christos 311379 GetStringUTFLength-entry 18 95 1.1 christos 311379 GetStringUTFLength-return 18 96 1.1 christos 311379 GetStringUTFRegion-entry 18 97 1.1 christos 311379 GetStringUTFRegion-return 18 98 1.1 christos 311379 GetFieldID-entry 21 99 1.1 christos 311379 GetFieldID-return 21 100 1.1 christos 309790 CallStaticVoidMethod-entry 24 101 1.1 christos 309790 CallStaticVoidMethod-return 24 102 1.1 christos 194441 CallStaticVoidMethod-entry 26 103 1.1 christos 194441 CallStaticVoidMethod-return 26 104 1.1 christos 311379 GetStringUTFChars-entry 29 105 1.1 christos 311379 GetStringUTFChars-return 29 106 1.1 christos 311379 ReleaseStringUTFChars-entry 29 107 1.1 christos 311379 ReleaseStringUTFChars-return 29 108 1.1 christos 311379 CallObjectMethod-entry 30 109 1.1 christos 311379 CallObjectMethod-return 30 110 1.1 christos 311379 GetStringCritical-entry 35 111 1.1 christos 311379 GetStringCritical-return 35 112 1.1 christos 311379 ReleaseStringCritical-entry 35 113 1.1 christos 311379 ReleaseStringCritical-return 35 114 1.1 christos 311379 ExceptionOccurred-entry 46 115 1.1 christos 311379 ExceptionOccurred-return 46 116 1.1 christos 311379 GetStringLength-entry 54 117 1.1 christos 311379 GetStringLength-return 54 118 1.1 christos 311379 NewStringUTF-entry 54 119 1.1 christos 311379 NewStringUTF-return 54 120 1.1 christos 311379 NewString-entry 55 121 1.1 christos 311379 NewString-return 55 122 1.1 christos 311379 GetObjectField-entry 60 123 1.1 christos 311379 GetObjectField-return 60 124 1.1 christos 311379 DeleteLocalRef-entry 108 125 1.1 christos 311379 DeleteLocalRef-return 108 126 1.1 christos 311379 class-loaded 327 127 1.1 christos 311379 object-alloc 5389 128 1.1 christos 311379 method-return 12024 129 1.1 christos 311379 method-entry 12031 130 1.1 christos 131 1.1 christos You can see that nearly all of the events recorded are from PID 311379, which 132 1.1 christos we can assume in this case is the program in question. Not all of the lines 133 1.1 christos correspond to this, however, which is something to be aware of while analysing 134 1.1 christos the results. 135