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

Method end_benchmark_measure

platform/android/java_godot_wrapper.cpp:499–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void GodotJavaWrapper::end_benchmark_measure(const String &p_context, const String &p_label) {
500 if (_end_benchmark_measure) {
501 JNIEnv *env = get_jni_env();
502 ERR_FAIL_NULL(env);
503 jstring j_context = env->NewStringUTF(p_context.utf8().get_data());
504 jstring j_label = env->NewStringUTF(p_label.utf8().get_data());
505 env->CallVoidMethod(godot_instance, _end_benchmark_measure, j_context, j_label);
506 env->DeleteLocalRef(j_context);
507 env->DeleteLocalRef(j_label);
508 }
509}
510
511void GodotJavaWrapper::dump_benchmark(const String &benchmark_file) {
512 if (_dump_benchmark) {

Callers 1

benchmark_end_measureMethod · 0.80

Calls 3

get_jni_envFunction · 0.85
get_dataMethod · 0.45
utf8Method · 0.45

Tested by

no test coverage detected