It is now possible to profile GDScript as well as some parts of Godot internals.
#include "profile_clock.h"