|
From: Nicholas N. <nj...@cs...> - 2007-12-03 21:23:11
|
On Mon, 3 Dec 2007, mattieu Castet wrote: > I am interested in Massif for checking the stack usage. > Massif works great and provide some numbers, but there are no back trace for the > stack report (--heap=off --stack=on). > > So I can see in some place I have peaks of stack usage, but I am unable to > identify the code doing that. > > Is there an option to add back trace on stack usage ? > > Is there something planned ? The stack measurement was put on as a secondary use, so I haven't tested it or thought about it nearly as much as the heap measurement. I can see that a stack trace would be useful, I'll add it to my todo list. In the meantime, if you're feeling adventurous you could experiment with calling VG_(get_StackTrace) in massif/ms_main.c:take_snapshot() to get this information. Nick |