MacOS Valgrind alternative. Which one?
-
Hello all!
What is the best Valgrind alternative for MacOS? Valgrind isn't working on MacOS Monterey:
- https://ports.macports.org/port/valgrind-macos-devel/details/
- https://ports.macports.org/port/valgrind/
Need to check applications for memory leaks.
There are ability to check by MacOS Leak application. In this case is there any option to use it with Qt Creator?
-
Hello all!
What is the best Valgrind alternative for MacOS? Valgrind isn't working on MacOS Monterey:
- https://ports.macports.org/port/valgrind-macos-devel/details/
- https://ports.macports.org/port/valgrind/
Need to check applications for memory leaks.
There are ability to check by MacOS Leak application. In this case is there any option to use it with Qt Creator?
Hi,
From memory, Leaks is the correct tool. As for Qt Creator integration, you would likely need a custom plugin so for the time being, you will have to run in separately.
-
Hello all!
What is the best Valgrind alternative for MacOS? Valgrind isn't working on MacOS Monterey:
- https://ports.macports.org/port/valgrind-macos-devel/details/
- https://ports.macports.org/port/valgrind/
Need to check applications for memory leaks.
There are ability to check by MacOS Leak application. In this case is there any option to use it with Qt Creator?
@bogong Why don't you use clang's address/leak sanitizer on macOS?
with CMake it would be something like this:
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O1 -fsanitize=address -g -fno-omit-frame-pointer")