summaryrefslogtreecommitdiff
path: root/modules/gdnative/nativescript/godot_nativescript.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-22 22:27:42 +0200
committerGitHub <noreply@github.com>2018-08-22 22:27:42 +0200
commitd9cad85f43a1ca319c391b53a631e92a99d252ff (patch)
tree9bff4c8798742e72fddabf6190b306aea2936cbc /modules/gdnative/nativescript/godot_nativescript.cpp
parenta752e2f4a370d82b5769f784bc030af4a61369c1 (diff)
parenta323b7a1ba0082967df22411519c713348514b38 (diff)
Merge pull request #21229 from marcelofg55/ns_profiling
Implemented profiling functions for NativeScript
Diffstat (limited to 'modules/gdnative/nativescript/godot_nativescript.cpp')
-rw-r--r--modules/gdnative/nativescript/godot_nativescript.cpp4
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