From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5de108d9cf7f21e0,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-19 05:02:43 PST From: "Dr. Michael Paus" Newsgroups: comp.lang.ada Subject: Question concerning usage of gnatmem Date: Thu, 19 Sep 2002 14:02:41 +0200 Organization: 1&1 Internet AG Message-ID: NNTP-Posting-Host: p508306b6.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.online.de 1032436962 15044 80.131.6.182 (19 Sep 2002 12:02:42 GMT) X-Complaints-To: abuse@online.de NNTP-Posting-Date: 19 Sep 2002 12:02:42 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!151.189.0.75!newsfeed.arcor-online.net!news.belwue.de!news.uni-ulm.de!rz.uni-karlsruhe.de!schlund.de!news.online.de!not-for-mail Xref: archiver1.google.com comp.lang.ada:29166 Date: 2002-09-19T12:02:42+00:00 List-Id: 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