How to use the Profiler?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ceilingdoor
:warning: Old Version Published before Godot 3 was released.

The GDScript profiler looks like a handy feature, but I can’t understand how to use it. When I run my game and I’m on the “Profiler” tab in the debugger all I see is this:
enter image description here

and nothing changes even if I tick the “Script Functions” button. Everything is static no matter what I do.
How do I use it?

I tested to enable the profiler on the MiniLens demo, the profiler works fine.
You appear to have a bug somewhere. Also, “Frame # 33768” looks suspicious, because 33768 - 1000 = 32768, and 32768*2 = 65536, which is equal to 2^16. Coincidence? I don’t think so :stuck_out_tongue:
If you get a perfect repro of the bug on a test project, you can post it on Github Issues · godotengine/godot · GitHub

Zylann | 2016-08-22 12:54

Yup, looks like disabling vsync makes the profiler unable to get the frames right. I get a similar result (which is not static, but broken anyways).

Zylann | 2016-08-22 13:01

:bust_in_silhouette: Reply From: ProggerParrot

I know the answer come a little late. But the profiler in Godot is quite powerful, and this video will definitely helps you.