1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

First version of Profiler

It is now possible to profile GDScript as well as some parts of Godot
internals.
This commit is contained in:
Juan Linietsky
2016-05-21 21:18:16 -03:00
parent c195c0df6b
commit a75f896338
35 changed files with 2245 additions and 180 deletions

View File

@@ -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;