Commit 558e0839 authored by D1plo1d's avatar D1plo1d

Adding a heaptrace option for memory profiling prontserve and updating tornado...

Adding a heaptrace option for memory profiling prontserve and updating tornado in an attempt to squawsh the prontserve memory leak.
parent d3dd5ccf
......@@ -892,9 +892,16 @@ if __name__ == "__main__":
help='Enables verbose printer output'
)
parser.add_argument('--heaptrace', default=False, action='store_true',
help='Enables a heap trace on exit (for developer use)'
)
args = parser.parse_args()
dry_run = args.dry_run
if args.heaptrace:
from guppy import hpy
def warn_if_dry_run():
if dry_run:
for i in range(0,7):
......@@ -918,4 +925,5 @@ if __name__ == "__main__":
prontserve.ioloop.start()
except:
prontserve.p.disconnect()
if args.heaptrace: print hpy().heap()
if 'prontserve' in vars(): prontserve.p.disconnect()
pybonjour
git+https://github.com/nephics/tornado.git
git+https://github.com/D1plo1d/tornado.git
git+https://github.com/D1plo1d/py-mdns.git
guppy
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment