Re: Is memprof only caring about unfreed memory?



> Okay, so memprof just doesn't provide the feature that I need:
> For this silly example, I'd like it to tell me that main() allocated
> 1024 bytes in total.

If you're running on Linux, you might want to look at valgrind. If you run:

valgrind --tool=massif your_prog

then it generates a .txt and a postscript .ps describing memory use
over the life of the program. Not sure if it gives the exact detail
you're after, but it sounds closer.

regards,

jb



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]