Memory leak checking on Windows with QT and MinGW32

后端 未结 2 787
不知归路
不知归路 2020-12-31 18:14

Lately I have been developing in C++ with QT Creator. All is well and I\'m nearly at the point of packaging and distributing my application. But obviously before any release

相关标签:
2条回答
  • 2020-12-31 18:44

    Personally, I find the valgrind / memcheck / callgrind / kcachegrind combo to be too powerful to pass up for memory leaks and performance analysis. Being free (gratis) is especially nice since I cannot personally afford the cost of some of these other professional tools.

    I've been working on a cross platform Qt application for a couple years now. As I develop, I bounce back and forth between windows and linux when I want to test features and functionality. However, I always do my performance analysis in linux. The memory leaks and performance concerns that I find are always ones that are injected by my team of developers on top of Qt. So when these problems are fixed, regardless of being identified in Linux, the benefits will carry over into windows.

    I suggest you investigate setting up a pure linux build environment that you can test in. Perhaps the easiest solution for you would be to create a virtual machine to do your performance analysis on. My preferred combination is VirtualBox and Ubuntu.

    0 讨论(0)
  • 2020-12-31 18:46

    May be you can use these libs for windows

    Hooks for Malloc [gnu.org] Backtrace [gnu.org] valgrind [valgrind.org]

    0 讨论(0)
提交回复
热议问题