| 111 | } |
| 112 | |
| 113 | void GDScriptFunction::_profile_native_call(uint64_t p_t_taken, const String &p_func_name, const String &p_instance_class_name) { |
| 114 | HashMap<String, Profile::NativeProfile>::Iterator inner_prof = profile.native_calls.find(p_func_name); |
| 115 | if (inner_prof) { |
| 116 | inner_prof->value.call_count += 1; |
| 117 | } else { |
| 118 | String sig = vformat("%s::0::%s%s%s", get_script()->get_script_path(), p_instance_class_name, p_instance_class_name.is_empty() ? "" : ".", p_func_name); |
| 119 | inner_prof = profile.native_calls.insert(p_func_name, Profile::NativeProfile{ 1, 0, sig }); |
| 120 | } |
| 121 | inner_prof->value.total_time += p_t_taken; |
| 122 | } |
| 123 | |
| 124 | #endif // DEBUG_ENABLED |
| 125 |
nothing calls this directly
no test coverage detected