Whether such a thing can be supported by a tool of course depends on the
tool.
For memcheck, this obviously makes no sense. But yes, it could become a
VG core
feature and tools enable it if they can cope with.
E.g. for lackey, it also would work.

To not forget about it, can you add it as "wishlist" bug report?

Josef


Am 22.02.2015 um 12:09 schrieb Peter Toft:
> Hi all
> 
> In order to count cycles for part of my C/C++ code I often use
> 
> 1. #include <valgrind/callgrind.h>
> 
> 2. add the following macros surrounding the blocks you wish to profile:
> 
> CALLGRIND_START_INSTRUMENTATION
> ..
> code I want to profile
> ..
> 
> CALLGRIND_STOP_INSTRUMENTATION
> 
> 3. valgrind --tool=callgrind --instr-atstart=no command
> 
> This is very nice - but a similar procedure/trick apparently does not 
> apply for massif.
> If I want to monitor memory for a part of the run-time, but not all.
> Have I missed something??
> 
> It could really be nice to have - so if possible, please add to the list 
> of future development ideas.
> I might be able to code some of this if I get some help on where to 
> start.
> 
> Best
> 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to