Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guppy import hpy
- h = hpy()
- print h.heap()
- Partition of a set of 132527 objects. Total size = 8301532 bytes.
- Index Count % Size % Cumulative % Kind (class / dict of class)
- 0 35144 27 2140412 26 2140412 26 str
- 1 38397 29 1309020 16 3449432 42 tuple
- 2 530 0 739856 9 4189288 50 dict (no owner)
- # memdebug.py
- import cherrypy
- import dowser
- def start(port):
- cherrypy.tree.mount(dowser.Root())
- cherrypy.config.update({
- 'environment': 'embedded',
- 'server.socket_port': port
- })
- cherrypy.server.quickstart()
- cherrypy.engine.start(blocking=False)
Add Comment
Please, Sign In to add comment