Other tools for Qt Development
-
wrote on 7 Dec 2010, 21:19 last edited by
Ok. I'm slowly getting used to coding with Qt. I'm currently working on coding a graph and I've gotten to a point where I want to start unit testing the code.
Is there a tool out there that I can use to track issues in coding such as memory leaks?
-
wrote on 7 Dec 2010, 21:32 last edited by
Check this thread: "Diskussion about memory profiler...":http://developer.qt.nokia.com/forums/viewthread/1924
There are several tools and it depends on the platform... -
wrote on 7 Dec 2010, 21:33 last edited by
"Valgrind":http://valgrind.org/
-
wrote on 7 Dec 2010, 21:36 last edited by
That depens on the platform :-) (see noted thread above)
-
wrote on 7 Dec 2010, 22:40 last edited by
Grrrr. I keep forgetting to put down platform information.
Qt 4.7/Mac OS X 10.6.5
-
wrote on 7 Dec 2010, 22:48 last edited by
cazador7907, Valgrind should be ok for you then.
-
wrote on 8 Dec 2010, 10:03 last edited by
Valgrind also has GUI written in Qt4 called "Valkyrie":http://www.valgrind.org/downloads/current.html
-
wrote on 8 Dec 2010, 13:31 last edited by
There is also a nice visualizer for the massif (one of the valgrind tools) output called "massif-visualizer":http://gitorious.org/massif-visualizer.
-
wrote on 8 Dec 2010, 15:04 last edited by
By the by - I have had good success using Boost::Graph and Qt together. This might be overkill for what you need, but it's the best I've found.
I've not done any OSX development at all, but I've also had good success with simple tools like dmalloc, DUMA, and mpatrol.
I wrote an (IMNSHO) incredibly awesome one about ten years ago, but it breaks badly on C++ templates so it never got released. Someday I will have time to figure out how to rewrite it to make it work again...
2/9