|
From: Carl Y. <ca...@yo...> - 2004-03-29 18:24:29
|
I'm new to valgrind. I notice when I run it that I get an overall report of how many bytes were allocated. But it seems that this figure is not exactly what I want. I don't care if the program is allocating lots of memory as long as it deallocates that memory later. What I want to know is the maximum amount of memory that my program is taking up at any time during its execution. How do I do this? Thanks, Carl Youngblood |
|
From: Nicholas N. <nj...@ca...> - 2004-03-29 19:07:41
|
On Mon, 29 Mar 2004, Carl Youngblood wrote: > I'm new to valgrind. I notice when I run it that I get an overall report > of how many bytes were allocated. But it seems that this figure is not > exactly what I want. I don't care if the program is allocating lots of > memory as long as it deallocates that memory later. What I want to know > is the maximum amount of memory that my program is taking up at any time > during its execution. How do I do this? Memcheck (the default Valgrind tool) cannot tell you this. You can find it out if you use the Valgrind tool named Massif (use --tool=massif) that comes with version 2.1.1 -- it doesn't mention peak usage explicitly, but you can work it out from the peak point on the outputted graph. HTH N |