|
From: Nicholas N. <nj...@cs...> - 2006-11-20 21:49:39
|
On Mon, 20 Nov 2006, Bart Van Assche wrote: > By this time I found out that massif reports the total stack size used by > all threads in a graph (.ps file). What I would like is the stack size used > per thread, as a number. Is this possible with Valgrind ? Maybe. You'd have to modify a tool/write a new one. You'll need to monitor stack size changes (use the new_mem_stack* and die_mem_stack* events). Stack switches are trickier, if the SP change is more than a certain amount (2MB by default) Valgrind assumes it's a stack switch and doesn't tell the tool with those events (see coregrind/m_stacks.c:VG_(unknown_SP_update)). We should really have an event for stack switches so tools can know they've happened... Nick |