Profiling tools
As for tooling, there seems to be no problem, Qt Creator integrates them already under the Analyze menu—the QML profiler, the CPU, the function profiler, and the memory analyzer. Unfortunately, this integration only works on Linux, as the tool used by Qt Creator is Valgrind, which is not available on Windows. The QML profiler is Qt native, but the other profilers won't work on Windows, so we have to look for some alternatives.
Now, the often-heard advice is to whip up a VM instance with Linux installed, and do your profiling there using Qt Creator's built-in Valgrind integration. In this book, we do not endorse such techniques because we aren't developing on Windows just to switch to Linux at the first opportunity. Though ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access