summaryrefslogtreecommitdiffstats
path: root/core/object/script_language_extension.cpp
diff options
context:
space:
mode:
authormsreis <mateus.sureis@gmail.com>2023-03-05 14:37:11 +0200
committerYuri Sizov <yuris@humnom.net>2023-12-19 19:42:21 +0100
commitf1cc14d5252b1c799a7960b3cced678eebb6ab2a (patch)
tree7201aa33bd885f18dc12f3e3949c65e1350ee495 /core/object/script_language_extension.cpp
parent1f5d4a62e9e9a8227ad63155b080fbbfac899571 (diff)
downloadredot-engine-f1cc14d5252b1c799a7960b3cced678eebb6ab2a.tar.gz
Fix missing time for some script functions in profiler
Fixes the issue by adding a mechanism by which the functions that were previously disappearing can be profiled too. This is optional with an editor setting, since collecting more information naturally slows the engine further while profiling. Fixes #23715, #40251, #29049
Diffstat (limited to 'core/object/script_language_extension.cpp')
-rw-r--r--core/object/script_language_extension.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object/script_language_extension.cpp b/core/object/script_language_extension.cpp
index e326baf7eb..79f39cb626 100644
--- a/core/object/script_language_extension.cpp
+++ b/core/object/script_language_extension.cpp
@@ -145,6 +145,7 @@ void ScriptLanguageExtension::_bind_methods() {
GDVIRTUAL_BIND(_profiling_start);
GDVIRTUAL_BIND(_profiling_stop);
+ GDVIRTUAL_BIND(_profiling_set_save_native_calls, "enable");
GDVIRTUAL_BIND(_profiling_get_accumulated_data, "info_array", "info_max");
GDVIRTUAL_BIND(_profiling_get_frame_data, "info_array", "info_max");