MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / begin_benchmark_measure

Method begin_benchmark_measure

platform/android/java_godot_wrapper.cpp:487–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487void GodotJavaWrapper::begin_benchmark_measure(const String &p_context, const String &p_label) {
488 if (_begin_benchmark_measure) {
489 JNIEnv *env = get_jni_env();
490 ERR_FAIL_NULL(env);
491 jstring j_context = env->NewStringUTF(p_context.utf8().get_data());
492 jstring j_label = env->NewStringUTF(p_label.utf8().get_data());
493 env->CallVoidMethod(godot_instance, _begin_benchmark_measure, j_context, j_label);
494 env->DeleteLocalRef(j_context);
495 env->DeleteLocalRef(j_label);
496 }
497}
498
499void GodotJavaWrapper::end_benchmark_measure(const String &p_context, const String &p_label) {
500 if (_end_benchmark_measure) {

Callers 1

Calls 3

get_jni_envFunction · 0.85
get_dataMethod · 0.45
utf8Method · 0.45

Tested by

no test coverage detected