Profiling code cannot be enabled with Meson build system
It seems that there is no Meson option to enable the profiling code, it was removed with the Autotools removal and not replaced: 730ed5f1
This makes all code inside #if ENABLE_PROFILING
dead. Either the option should be added, or the code should be deleted.