--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tapscripts/stx-jvm-count-checkcast-and-instanceof.stp Fri Jun 19 08:46:40 2015 +0100
@@ -0,0 +1,33 @@
+global count;
+global count_checkcast;
+global count_instanceof;
+
+/*
+probe stx.librun.statement("__jInterpret@jinterpret.c:1752"){
+ count <<< 1
+}
+*/
+
+
+probe stx.librun.function("___checkcast") {
+ count_checkcast <<< 1
+}
+
+probe stx.librun.function("___checkcast_r") {
+ count_checkcast <<< 1
+}
+
+probe stx.librun.function("___instanceof") {
+ count_instanceof <<< 1
+}
+
+probe stx.librun.function("___instanceof_r") {
+ count_instanceof <<< 1
+}
+
+
+probe end {
+ printf("# of all insns : %d\n", @sum(count));
+ printf("# of CHECKCAST insns: %d\n", @sum(count_checkcast));
+ printf("# of INSTANCEOF insns: %d\n", @sum(count_instanceof));
+}
\ No newline at end of file