Hi Mohsen,
If by 'main memory' you mean RAM usage in total as opposed to heap or
stack), then this valgrind plugin might help:
https://github.com/mbeckersys/valgrind-ws
It can separate between instruction and data, gives you the number
number of accessed pages, both over time and in total.
Otherwise, for heap and stack you can use valgrind's massif.
Regards,
Martin
On 06.03.19 14:13, Mohsen Pahlevanzadeh wrote:
Dear all,
I need to find out size of my program main memory. How can I do it with
valgrind?
--regards
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users