diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/profiling/memdebug.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/profiling/memdebug.py b/scripts/profiling/memdebug.py new file mode 100644 index 00000000..ed606331 --- /dev/null +++ b/scripts/profiling/memdebug.py @@ -0,0 +1,13 @@ +# memdebug.py + +import cherrypy +import dowser + + +def start(port): + cherrypy.tree.mount(dowser.Root()) + cherrypy.config.update({ + 'environment': 'embedded', + 'server.socket_port': port + }) + cherrypy.engine.start() |