This is a *very* impressive tool.
It has already helped me A LOT today. Thanx!!
But adding my idea would make it super^2 (needs cowork between the
valgrind core and your tool)
/P
---
Peter Toft <p...@linuxbog.dk>
Wilfried Goesgens skrev den 2014-11-20 12:57:
> Hi Peter,
>
> you should try massif visiualizer:
>
> https://projects.kde.org/projects/extragear/sdk/massif-visualizer
>
>> Thu Nov 20 2014 03:04:14 EST from "Peter Toft" <p...@linuxbog.dk> Subject:
>> [Valgrind-users] massif instrumentation in C/C++ code
>> Hi all
>>
>> One thing that I often is missing with valgrind/massif is a way to know
>> know where I roughly am in my code when I see a given memory peak.
>>
>> I could envision to add a valgrind-macro or alike in my C-code to
>> indicate where I am in my code add (tentative syntax)
>>
>> VALGRIND_MASSIF("calculator1()")
>>
>> and another place
>>
>> VALGRIND_MASSIF("reduceMem - middle")
>>
>> Then the ms_print output should indicate (see the % signs) when in the
>> code flow that we had this function call executed.
>>
>> 19.63^ ###
>> | % #
>> | % # ::
>> | % # : :::
>> | % :::::::::# : : ::%
>> | % : # : : : %::
>> | % : # : : : %: :::
>> | % : # : : : %: : ::
>> | % ::::::::::: # : : : %: : :
>> :::
>> | % : : # : : : %: : :
>> : ::
>> | ::%::: : # : : : %: : :
>> : : ::
>> | @@@: % : : # : : : %: : :
>> : : : @
>> | ::@ : % : : # : : : %: : :
>> : : : @
>> | :::: @ : % : : # : : : %: : :
>> : : : @
>> | ::: : @ : % : : # : : : %: : :
>> : : : @
>> | ::: : : @ : % : : # : : : %: : :
>> : : : @
>> | :::: : : : @ : % : : # : : : %: : :
>> : : : @
>> | ::: : : : : @ : % : : # : : : %: : :
>> : : : @
>> | :::: : : : : : @ : % : : # : : : %: : :
>> : : : @
>> | ::: : : : : : : @ : % : : # : : : %: : :
>> : : : @
>> 0
>> +--------------------------%-------------------------------%-------------->KB
>>
>> 0
>> 29.48
>> % %
>> reduceMem - middle
>> % calculator1()
>>
>> Number of snapshots: 25
>> Detailed snapshots: [9, 14 (peak), 24]
>>
>> Does something remotely similar to this already exist?
>>
>> Best
>>
>> --
>> Peter Toft <p...@linuxbog.dk>
>>
>> ------------------------------------------------------------------------------
>> 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=157005751&iu=/4140/ostg.clktrk
>> [1]
>> _______________________________________________
>> Valgrind-users mailing list
>> Valgrind-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/valgrind-users
Links:
------
[1]
http://pubads.gdoubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
------------------------------------------------------------------------------
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=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users