Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running external server #68

Closed
yaroslavvb opened this issue Oct 2, 2017 · 2 comments
Closed

Allow running external server #68

yaroslavvb opened this issue Oct 2, 2017 · 2 comments

Comments

@yaroslavvb
Copy link

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
Copy link
Owner

nvdv commented Oct 3, 2017

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
Copy link
Owner

nvdv commented Oct 4, 2017

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

@nvdv nvdv changed the title Feature request: Allow running external server Allow running external server Oct 7, 2017
@nvdv nvdv closed this as completed Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants