nvdv / vprof

Visual profiler for Python
BSD 2-Clause "Simplified" License
3.95k stars 154 forks source link

Allow running external server #68

Closed yaroslavvb closed 7 years ago

yaroslavvb commented 7 years ago

It would be useful to have vprof launch server that listens for external connections. Similar to what jupyter allows. I'd like to launch it a devbox connected to firewalled LAN, so security is not an issue

nvdv commented 7 years ago

You can run vprof in remote mode (if that's what you need)

vprof -r 
from vprof import runner

def foo(arg1, arg2):
    ...

runner.run(foo, 'cmhp', args=(arg1, arg2), host='localhost', port=8000)

If that is not what you need, can you describe feature you requesting?

nvdv commented 7 years ago

vprof is webapp, so you can set host name and port number of the server with -H and -p flags respectively

vprof -c c example.py -H localhost -p 12345