63 log_println(
"Java_sun_misc_Perf_attach: Not supported!");
75 log_println(
"Java_sun_misc_Perf_createByteArray: Not supported!");
88 return env->functions->NewDirectByteBuffer(env, &dummy_perf,
sizeof(dummy_perf));
99 log_println(
"Java_sun_misc_Perf_detach: Not supported!");
131 { (
char*)
"attach", (
char*)
"(Ljava/lang/String;II)Ljava/nio/ByteBuffer;", (
void*) (uintptr_t) &
Java_sun_misc_Perf_attach },
Table containing all native methods registered with the VM.
NativeMethods & get_nativemethods()
JNIEXPORT jlong JNICALL Java_sun_misc_Perf_highResCounter(JNIEnv *env, jobject _this)
void register_methods(Utf8String classname, const JNINativeMethod *methods, size_t count)
Register native methods with the VM.
#define NATIVE_METHODS_COUNT
JNIEXPORT void JNICALL Java_sun_misc_Perf_registerNatives(JNIEnv *env, jclass clazz)
static jlong initial_timer
JNIEXPORT void JNICALL Java_sun_misc_Perf_detach(JNIEnv *env, jobject _this, jobject bb)
JNIEnv jclass jobject const char * name
void log_println(const char *text,...)
JNIEXPORT jobject JNICALL Java_sun_misc_Perf_createByteArray(JNIEnv *env, jobject _this, jstring name, jint variability, jint units, jbyteArray value, jint max_length)
void _Jv_sun_misc_Perf_init(void)
JNIEXPORT jlong JNICALL Java_sun_misc_Perf_highResFrequency(JNIEnv *env, jobject _this)
s8 builtin_nanotime(void)
static Utf8String from_utf8(const char *, size_t)
static JNINativeMethod methods[]
JNIEXPORT jobject JNICALL Java_sun_misc_Perf_createLong(JNIEnv *env, jobject _this, jstring name, jint variability, jint units, jlong value)
static uint64_t dummy_perf
static VM * get_current()
JNIEXPORT jobject JNICALL Java_sun_misc_Perf_attach(JNIEnv *env, jobject _this, jstring user, jint lvmid, jint mode)