comp.lang.ada
 help / color / mirror / Atom feed
* Question concerning usage of gnatmem
@ 2002-09-19 12:02 Dr. Michael Paus
  2002-09-19 16:20 ` Stephen Leake
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. Michael Paus @ 2002-09-19 12:02 UTC (permalink / raw)


Hi,

I am just analyzing a program on Linux with GNAT 3.14p using gnatmem.

When I run gnatmem on the output file generated by a previous run of
the main program I get the following result:

mpaus@ip4:>gnatmem -i gmem.out ../bin/i386-Linux/main_single_board
Global information
------------------
    Total number of allocations        :1079
    Total number of deallocations      :  51
    Final Water Mark (non freed mem)   : 242.08 Kilobytes
    High Water Mark                    : 242.08 Kilobytes

Allocation Root # 1
-------------------
  Number of non freed allocations    :1028
  Final Water Mark (non freed mem)   : 242.08 Kilobytes
  High Water Mark                    : 242.08 Kilobytes
  Backtrace                          :
    ??:0 ??

This looks strange to me because I actually expected more allocation roots
than just one.

I'd be happy if someone could answer me the following questions:

When I run the program I have to stop it via Cntrl-C because this software
was designed to run forever and there is no other way to stop it. Does this
lead to a corrupt output file?

If the output is likely to be corrupt is there any other way to get the
memory usage until the time when the program is stopped?

Many thanks in advance

Michael




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-22  8:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19 12:02 Question concerning usage of gnatmem Dr. Michael Paus
2002-09-19 16:20 ` Stephen Leake
2002-09-19 16:38   ` Dr. Michael Paus
2002-09-20 12:07     ` Stephen Leake
2002-09-22  8:52       ` Dr. Michael Paus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox