QtCreator 5 performance analysis on a Windows 10 platform
-
Hello! How can one do a performance analysis of a QtCreator 5 application on a Windows 10 platform? I am aware of the Perf tool compatibility of QtCreator, but when choosing Analyze -> Performance Analyzer, I just get an error indicating that: "Make sure that you are running a recent linux kernel and that the 'perf' utility is available." Is the only real solution to switch to a Linux platform, at least for the performance analysis, or do I just have to indicate a proper path to a Perf like tool in QtCreator's settings. In the latter case, what option should I modify?
-
perf
is a Linux tool only. There are some options for windows (I recommend google and this post from SO).It might be easier though (I, for one, use this approach whenever needed) to start precise QTimer instance before the part of the code you wish to measure and stop it afterwards, displaying the elapsed time.
-