From: Alex I. <ale...@in...> - 2003-06-05 22:41:34
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> Valgrind, unlike Rational suite tools, does not "instrument" anything. That's the beauty of it - you don't need to recompile (or in case ot Quantify re-link) the application. The difference is that Rational tools embed extra code inside your object files and libraries - for memory or performance profiling. As a result, executable size, shared libraries sizes are huge and executiion suffers greatly (esp. with purify). Valgrind, on the other hand, runs your application on a synthetic CPU, all the machine instructions of your app are executed by Valgrind on this CPU and memory/performance profiling is done there, not in your app code. As far as Quantify comparison, cachegrind sking gives you much more information - e.g. Quantify does not report cache usage profile. <p>Last but not least - Valgrind is free, has MUCH better developer support, and is updated more frequently. <br>Downside - only runs on x86 Linux, exactly because of synthetic CPU - porting it to other platforms is too much work, so developers chose the most popular platform. <p>Regards, <br>Alex <p>Mike Bresnahan wrote: <blockquote TYPE=CITE>I am new to valgrind, but I have used Rational Quantify. Excuse if this is <br>a FAQ, but I could not find anything in the FAQ nor in the mailing list <br>archive. <p>I am curious why valgrind chooses to instrument on-the-fly every time the <br>application is executed rather than instrumenting the application ahead of <br>time and reexecuting the same instrumented executable each time, a la <br>Quantify. To my perhaps naive mind it seems like instrumenting on-the-fly <br>is less efficient. Can someone lend some insight? <p>Mike <p>------------------------------------------------------- <br>This SF.net email is sponsored by: Etnus, makers of TotalView, The best <br>thread debugger on the planet. Designed with thread debugging features <br>you've never dreamed of, try TotalView 6 free at www.etnus.com. <br>_______________________________________________ <br>Valgrind-users mailing list <br>Val...@li... <br><a href="https://lists.sourceforge.net/lists/listinfo/valgrind-users">https://lists.sourceforge.net/lists/listinfo/valgrind-users</a></blockquote> <pre>-- Alex G. Ivershen Inet Technologies, Inc. Network Products Dept. 1500 N. Greenville Ave. Inet Technologies Inc. Richardson, TX 75081 Phone: +1-469-330-4295 USA "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." -- Kristian Wilson, Nintendo, Inc</pre> </html> |