summaryrefslogtreecommitdiff
path: root/scripts/profiling/memdebug.py
blob: ed6063310203d3573989f277dced687cc377e0f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()