diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-08-20 12:14:52 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-08-22 15:40:41 -0300 |
commit | a323b7a1ba0082967df22411519c713348514b38 (patch) | |
tree | 65e6f8a538898e3e271e8726f166610fe62ec9ec /modules/gdnative/nativescript/godot_nativescript.cpp | |
parent | 75e540ce7259adbe1b1d4b22f2444078953da494 (diff) | |
download | redot-engine-a323b7a1ba0082967df22411519c713348514b38.tar.gz |
Implemented profiling functions for NativeScript
Diffstat (limited to 'modules/gdnative/nativescript/godot_nativescript.cpp')
-rw-r--r-- | modules/gdnative/nativescript/godot_nativescript.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/godot_nativescript.cpp b/modules/gdnative/nativescript/godot_nativescript.cpp index ace2ecac5c..72606c8340 100644 --- a/modules/gdnative/nativescript/godot_nativescript.cpp +++ b/modules/gdnative/nativescript/godot_nativescript.cpp @@ -365,6 +365,10 @@ void GDAPI *godot_nativescript_get_instance_binding_data(int p_idx, godot_object return NativeScriptLanguage::get_singleton()->get_instance_binding_data(p_idx, (Object *)p_object); } +void GDAPI godot_nativescript_profiling_add_data(const char *p_signature, uint64_t p_time) { + NativeScriptLanguage::get_singleton()->profiling_add_data(StringName(p_signature), p_time); +} + #ifdef __cplusplus } #endif |