comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Michael Paus" <paus@ib-paus.com>
Subject: Question concerning usage of gnatmem
Date: Thu, 19 Sep 2002 14:02:41 +0200
Date: 2002-09-19T12:02:42+00:00	[thread overview]
Message-ID: <amced2$em4$1@news.online.de> (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




             reply	other threads:[~2002-09-19 12:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-19 12:02 Dr. Michael Paus [this message]
2002-09-19 16:20 ` Question concerning usage of gnatmem 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
replies disabled

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