当前位置:网站首页>QT creator uses Valgrind code analysis tool

QT creator uses Valgrind code analysis tool

2022-07-06 11:13:00 it_ xiangqiang

Use Valgrind Code analysis tools

Qt Creator Integrated Valgrind Code analysis tools , Used to detect memory leaks and analyze function execution . You must download and install them separately to get them from Qt Creator Use them in .

You can run locally on the development host or remotely on another host Valgrind Tools . You can use them to analyze in Qt Creator For which a project application and an application without a project are established .

Valgrind Tools only in Linux and macOS Local support on . however , according to Valgrind.org That's what I'm saying , Yes macOS 10.8 and 10.9 Our support is experimental , And it is invalid in most cases . You can remote from any development host Linux Run these tools on the machine or equipment .

To run Valgrind Tools to analyze applications that you own projects , Please be there. Qt Creator Open the project , Then select the toolkit to run the project . The toolkit specifies Valgrind Whether the tool runs locally or remotely .
Choose Valgrind Tool options , Please select “ Tools ” >“ Options ” >“ analyzer ”. You can see in the of the project “ Run settings ” Override the general settings for each item in .
The following sections describe how to use Valgrind Tools :

Use Memcheck Detect memory leaks

Analyze function execution

原网站

版权声明
本文为[it_ xiangqiang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131638232079.html