]> git.ipfire.org Git - thirdparty/asterisk.git/commit
refcounter.py: prevent use of excessive RAM with large refs logs
authorCorey Farrell <git@cfware.com>
Fri, 27 Jun 2014 19:14:42 +0000 (19:14 +0000)
committerCorey Farrell <git@cfware.com>
Fri, 27 Jun 2014 19:14:42 +0000 (19:14 +0000)
commitd8a04cd816cd29551af22197c35fadd08cf3efac
treeed5d32d0f0cfe3961ae0d5ed2fb65dfe10f8ee9a
parentdb3d055e382574c01ab560c6962daa89fa96dc91
refcounter.py: prevent use of excessive RAM with large refs logs

When processing a 212MB refs file, refcounter.py used over 3GB of RAM.
This change greatly reduces memory usage in two ways:

* Saving object history in whole lines instead of separated values.
* Not saving normal/skewed/leaked object lists unless they are requested.

ASTERISK-23921 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/3668/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@417480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
contrib/scripts/refcounter.py