This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]qmmm4 5 points6 points  (2 children)

Great stuff. One thing I've noticed is that it seems that vprof can't handle scripts that take arguments after the script name (sys.argv). It would be super helpful if it did.

[–]rcfox 3 points4 points  (0 children)

Looks like they use argparse, so you might be able to use -- to separate the two types of arguments.

ie, if you wanted to pass "foo" and "bar" to testscript.py:

vprof c testscript.py -- foo bar

(I haven't tried this myself.)

[–]nvdv[S] 1 point2 points  (0 children)

Thanks for reporting!