----- "Max Matveev" <makc@xxxxxxxxx> wrote:
> On Mon, 15 Nov 2010 08:14:18 +1100, Max Matveev wrote:
> makc> On Sat, 13 Nov 2010 20:45:55 -0500, Nate Pearlstein wrote:
> NP> on my mbp and imac. As time goes on, the rsize grow to ~1.8GB.
> NP> This can't be right. Anything I can do to track this down? I'm
> NP> not too familiar with mac profiling tools.
> makc> Suprisingly, the answer is to use leaks(1). I'm assuming that
> you do
> makc> have XCode installed.
> Quick check reveals few places where pmcd PMDA was a bit naive about
> memory management - see leaks branch on git://oss.sgi.com/makc/pcp.
Nice. Use of ctime_r here is a bit questionable - what's that in aid of?
Doesn't seem to be needed in this content...? Its not used anywhere else
in pcp, and is unlikely to build on at least one supported platform. :)