modifying performance counter jni interface.