🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3590

Re: MEMORY QUESTION

#3590
From: David Peter
Date: Mon, 15 Jan 2001 09:47
29 lines
2542 bytes
Andrew Gabriel wrote:
> 
> In article <3A611A23.C9AA59AD@home.com>,
>         Robert Anderson <rwa511@home.com> writes:
> >wroot@my-deja.com wrote:
> >> I have asked this question in Linux newsgroups, but got no answer. I'm
> >> trying to see how much memory my program allocates (at its highest) and
> >> whether it deallocates all of it by the time the program finishes or
> >> leaks memory. Are there any tools for that?
> >
> >purify is an excellent commercial tool for this purpose.  But it is not
> >cheap.
> 
> Electric fence is another, and free. I don't know for sure if it works
> on Linux, but I would think it's quite likely to.
> 
> Some unixs ship with debugging malloc libraries - again I don't know
> about Linux - might depend on your distribution.
> 
> --
> Andrew Gabriel                              Andrew@cucumber.demon.co.uk
> Consultant Software Engineer
Purify isn't available for Linux unfortunately. However there is
Insure++ from Parasoft which is similar and is available for Linux. It's
also more expensive than Purify. 

The problem I've found with tools like ElectricFence and dmalloc is that
they're useless on anything but a trivial application. For a real-world
application they make it so fat and slow as to be unusable.
Technical Details
Message-ID: <3A62C719.97D2D747@eu.citrix.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!newsfeed.icl.net!nntp.news.xara.net!xara.net!gxn.net!news.lattis.xara.net!psiuk-f4!psiuk-p4!uknet!psiuk-n!nnrp1.news.uk.psi.net!proxy1.ctxuk.citrix.com
References: <93r49f$hoe$1@nnrp1.deja.com> <3A611A23.C9AA59AD@home.com> <93s161$80f@cucumber.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c364cf4dfaec596b
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,c364cf4dfaec596b
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2001-01-15 05:46:10 PST
Message-ID: <3A62C719.97D2D747@eu.citrix.com>
Date: Mon, 15 Jan 2001 09:47:05 +0000
From: David Peter <dave.peter@eu.citrix.com>
Organization: Citrix Systems (UK) Ltd
X-Mailer: Mozilla 4.73 [en] (X11; U; HP-UX B.10.20 9000/715)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.unix.programmer,gnu.gcc.help
Subject: Re: MEMORY QUESTION
References: <93r49f$hoe$1@nnrp1.deja.com> <3A611A23.C9AA59AD@home.com> <93s161$80f@cucumber.demon.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cache-Post-Path: proxy1.ctxuk.citrix.com!unknown@zebedee.ctxuk.citrix.com
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
NNTP-Posting-Host: proxy1.ctxuk.citrix.com
X-Trace: 15 Jan 2001 09:48:25 GMT, proxy1.ctxuk.citrix.com
Lines: 29
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!newsfeed.icl.net!nntp.news.xara.net!xara.net!gxn.net!news.lattis.xara.net!psiuk-f4!psiuk-p4!uknet!psiuk-n!nnrp1.news.uk.psi.net!proxy1.ctxuk.citrix.com