summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-05-21 21:18:16 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-05-21 21:18:16 -0300
commita75f8963380a1f6ae8501f21a1d3f3bef8a89d91 (patch)
treeae561ded247f81565c8287b6fd4b816f6ec762e6 /bin
parentc195c0df6b36debc870216dd42e49fbda70fa861 (diff)
First version of Profiler
It is now possible to profile GDScript as well as some parts of Godot internals.
Diffstat (limited to 'bin')
-rw-r--r--bin/tests/test_gdscript.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/tests/test_gdscript.cpp b/bin/tests/test_gdscript.cpp
index 4578f5aa02..4457d70b38 100644
--- a/bin/tests/test_gdscript.cpp
+++ b/bin/tests/test_gdscript.cpp
@@ -487,12 +487,12 @@ static String _disassemble_addr(const Ref<GDScript>& p_script,const GDFunction&
static void _disassemble_class(const Ref<GDScript>& p_class,const Vector<String>& p_code) {
- const Map<StringName,GDFunction>& mf = p_class->debug_get_member_functions();
+ const Map<StringName,GDFunction*>& mf = p_class->debug_get_member_functions();
- for(const Map<StringName,GDFunction>::Element *E=mf.front();E;E=E->next()) {
+ for(const Map<StringName,GDFunction*>::Element *E=mf.front();E;E=E->next()) {
- const GDFunction &func=E->get();
+ const GDFunction &func=*E->get();
const int *code = func.get_code();
int codelen=func.get_code_size();
String defargs;