@shokarta
perf is only available on Linux, not Windows. E.g. https://stackoverflow.com/questions/34641644/is-there-a-windows-equivalent-of-the-linux-command-perf-stat. I don't think MinGW offers a perf. You would have to search around for your own equivalent, and change command line. Basically you might want to try to do it externally from Creator.
Linux perf I think would not tell you anything/much about what's going on in JS scripts. Don't know about Windows, MSVC has a profiler, don't know if you can use it best outside VS.
https://forum.qt.io/topic/129737/qtcreator-5-performance-analysis-on-a-windows-10-platform
https://training.kdab.com/portfolio/debugging-and-profiling-qt-applications-on-windows/
https://wiki.qt.io/Profiling_and_Memory_Checking_Tools
https://stackoverflow.com/a/34689067/489865