|
From: Herby6262 <jri...@bi...> - 2011-11-22 17:19:17
|
I have a good amount of Linux and programming experience (~10 years) but am new to the valgrind tool. Thus far I really like the information and capabilities, impressive. I'm profiling a multi-component embedded system on Ubuntu. The components are in multiple languages (c++, java, javascript tied in using lein and cmake), thus I chose Valgrind (also using perf and YourKit to qualify the valgrind results). I am wondering, will Valgrind work properly if I run it with more than 1 tool when executed? For example: valgrind --tool=callgrind --callgrind-out-file=calls.data --tool=massif --massif-output-file=heap.data ./program.out I get the feeling that since each tool is fairly taxing on the system the answer is going to be a resounding "no" - just wanted to ask. Thanks very much! -- View this message in context: http://old.nabble.com/2-Q%27s%3A-Can-more-than-1-Valgrind-tool-be-run-at-once--and-has-anyone-used-iogrind-to-profile-a-multi-threaded-app--tp32872906p32872906.html Sent from the Valgrind - Users mailing list archive at Nabble.com. |
|
From: WAROQUIERS P. <phi...@eu...> - 2011-11-23 10:10:42
|
> I'm profiling a multi-component embedded system on Ubuntu. > The components are in multiple languages (c++, java, > javascript tied in using lein and cmake), thus I chose > Valgrind (also using perf and YourKit to qualify the valgrind > results). I am wondering, will Valgrind work properly if I > run it with more than 1 tool when executed? For example: > > valgrind --tool=callgrind --callgrind-out-file=calls.data > --tool=massif --massif-output-file=heap.data ./program.out > > I get the feeling that since each tool is fairly taxing on > the system the answer is going to be a resounding "no" - just > wanted to ask. Not possible : the Valgrind tools are not "stackable". Note that something like 2 years ago, I started to work on a patch to callgrind to have it recording the allocation/de-allocation together with what it can record now. This would reasonably fullfill your usage above (i.e. have callgrind+massif). Never finished :(. Philippe ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. |