bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameter Substitution Causing Memory Leak


From: Yuri
Subject: Re: Parameter Substitution Causing Memory Leak
Date: Tue, 07 Jan 2014 13:40:34 -0800
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 01/07/2014 12:18, Todd B. Stein wrote:
These bugs result in gradual slowdown of indefinitely-running scripts which
rely on parameter substitution (rather than forking sed or awk) for speed
and efficiency. Forgive me if I used the wrong terminology, but whether
these bugs are considered honest-to-goodness "memory leaks" by valgrind
seems unimportant.

google-perftools is able to help analyze such problems.
It can produce memory reports in certain intervals of the program lifetime, and they graphically show who owns how much memory at particular times.

In a nutshell, the run is done like this:
HEAPPROFILE=google-profile-pid$$ LD_PRELOAD=/usr/lib/libtcmalloc.so $*

Yuri



reply via email to

[Prev in Thread] Current Thread [Next in Thread]