/* For some reason (null classloader?) have to use slashed name - it barks if it is dotted */
profilerServerClass = (*env)->FindClass(env, "org/netbeans/lib/profiler/server/ProfilerServer"); if (profilerServerClass == NULL) { char *new_sun_boot_class_path;
(*_jvmti)->GetSystemProperty(_jvmti, "sun.boot.class.path", &new_sun_boot_class_path);
fprintf(stderr, "Profiler Agent Error: Can't start the profiler back end: main class not found\n");
fprintf(stderr, "Profiler Agent Error: Boot class path was set to: %s\n", new_sun_boot_class_path);
(*_jvmti)->Deallocate(_jvmti, (void*)new_sun_boot_class_path);
fprintf(stderr, "Profiler Agent Error: Please check if you have jfluid-server.jar on this path\n"); return -1;
}
activateMethodID = (*env)->GetStaticMethodID(env, profilerServerClass, "activate", "(Ljava/lang/String;III)V"); if (activateMethodID == NULL) {
fprintf(stderr, "Profiler Agent Error: Can't start the profiler back end: activate(String, int) method not found in main class\n"); return -1;
}
/** If the VM was launched on its own, we arrange that this is called right after the VM is initialized */ void JNICALL vm_init_hook(jvmtiEnv *jvmti_env, JNIEnv* jni_env, jthread thread) {
setupAndCallProfilerRuntimeActivate(jni_env, ATTACH_DIRECT);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-10-01)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.