* heap info
@ 2010-09-23 14:10 Richard Hedin
2010-09-23 15:25 ` Jan Kratochvil
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Richard Hedin @ 2010-09-23 14:10 UTC (permalink / raw)
To: 'gdb@sourceware.org'
Hello all.
I need to find out which object in my application is growing without limit. In this documentation:
http://docs.hp.com/en/13243/gdb58.pdf
it appears as though I can issue:
heap info
and get what I want. When I examine the pdf for GDB Ninth Edition, there is no mention of these heap-related commands.
Are there any plans for "heap info" in the main branch? Alternatively, since the Hewlett-Package version is presumably GNU-licensed, can I download it and work my will on it?
Regards,
Rick
______________________________________________
See http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: heap info
2010-09-23 14:10 heap info Richard Hedin
@ 2010-09-23 15:25 ` Jan Kratochvil
2010-09-23 16:06 ` Richard Hedin
2010-09-23 17:00 ` Michael Snyder
2010-09-24 1:43 ` Tom Tromey
2 siblings, 1 reply; 6+ messages in thread
From: Jan Kratochvil @ 2010-09-23 15:25 UTC (permalink / raw)
To: Richard Hedin; +Cc: 'gdb@sourceware.org'
On Thu, 23 Sep 2010 16:09:56 +0200, Richard Hedin wrote:
> I need to find out which object in my application is growing without limit.
Try: valgrind --tool=massif ./app
valgrind also has various options for the allocations reporting.
Regards,
Jan
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: heap info
2010-09-23 15:25 ` Jan Kratochvil
@ 2010-09-23 16:06 ` Richard Hedin
2010-09-23 16:29 ` Jan Kratochvil
0 siblings, 1 reply; 6+ messages in thread
From: Richard Hedin @ 2010-09-23 16:06 UTC (permalink / raw)
To: 'Jan Kratochvil'; +Cc: 'gdb@sourceware.org'
Hi, Jan.
I'm trying to use valgrind --tool=massif. Thanks for the idea.
I am working with a core file. As far as I know, valgrind doesn't handle a core file.
I am running the application again under valgrind --tool=massif. It's painfully slow, and I'm not sure I can get results.
Any techniques to work on a dead core file? Some kind of post-mortem heap walker?
Regards,
Rick
-----Original Message-----
From: Jan Kratochvil [mailto:jan.kratochvil@redhat.com]
Sent: Thursday, September 23, 2010 10:25 AM
To: Richard Hedin
Cc: 'gdb@sourceware.org'
Subject: Re: heap info
On Thu, 23 Sep 2010 16:09:56 +0200, Richard Hedin wrote:
> I need to find out which object in my application is growing without limit.
Try: valgrind --tool=massif ./app
valgrind also has various options for the allocations reporting.
Regards,
Jan
______________________________________________
See http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: heap info
2010-09-23 14:10 heap info Richard Hedin
2010-09-23 15:25 ` Jan Kratochvil
@ 2010-09-23 17:00 ` Michael Snyder
2010-09-24 1:43 ` Tom Tromey
2 siblings, 0 replies; 6+ messages in thread
From: Michael Snyder @ 2010-09-23 17:00 UTC (permalink / raw)
To: Richard Hedin; +Cc: 'gdb@sourceware.org'
Richard Hedin wrote:
> Hello all.
>
> I need to find out which object in my application is growing without limit. In this documentation:
>
> http://docs.hp.com/en/13243/gdb58.pdf
>
> it appears as though I can issue:
>
> heap info
>
> and get what I want. When I examine the pdf for GDB Ninth Edition, there is no mention of these heap-related commands.
>
> Are there any plans for "heap info" in the main branch? Alternatively, since the Hewlett-Package version is presumably GNU-licensed, can I download it and work my will on it?
This work was never contributed back to FSF by HP.
You would have to speak to HP about whether their version of gdb
can be downloaded.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: heap info
2010-09-23 14:10 heap info Richard Hedin
2010-09-23 15:25 ` Jan Kratochvil
2010-09-23 17:00 ` Michael Snyder
@ 2010-09-24 1:43 ` Tom Tromey
2 siblings, 0 replies; 6+ messages in thread
From: Tom Tromey @ 2010-09-24 1:43 UTC (permalink / raw)
To: Richard Hedin; +Cc: 'gdb@sourceware.org'
>>>>> "Richard" == Richard Hedin <rhedin@peak6.com> writes:
Richard> I need to find out which object in my application is growing
Richard> without limit. In this documentation:
Richard> http://docs.hp.com/en/13243/gdb58.pdf
Richard> it appears as though I can issue:
Other people addressed this...
Richard> Are there any plans for "heap info" in the main branch?
Richard> Alternatively, since the Hewlett-Package version is presumably
Richard> GNU-licensed, can I download it and work my will on it?
You might be interested in this:
https://fedorahosted.org/gdb-heap/
I'm not familiar with the HP stuff, so I don't know whether this code
will satisfy your needs. But, it is at least worth a try, and I'm sure
the authors would be interested in bug reports :-)
Tom
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-09-24 1:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-23 14:10 heap info Richard Hedin
2010-09-23 15:25 ` Jan Kratochvil
2010-09-23 16:06 ` Richard Hedin
2010-09-23 16:29 ` Jan Kratochvil
2010-09-23 17:00 ` Michael Snyder
2010-09-24 1:43 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox