-
Notifications
You must be signed in to change notification settings - Fork 84
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
--profile-svg
doesn't work on windows, fails silently
#52
Comments
Here is a temporary fix that worked for me: after the pytest run, execute the two following commands: gprof2dot -f pstats prof/combined.prof > prof/tmp
dot -Tsvg -o prof/combined.svg prof/tmp Note that for the 'dot' command to be available you need to install http://www.graphviz.org and add its bin directory to the path. The gprof2dot command is added to your python installation when you install |
Hi guys, thanks for raising this. This is related in part to #70 in that it doesn't raise sensible errors when the |
For reference I fixed this in PR #99 by using a proper |
This also happens on OSX - it says that the svg has been saved, but it hasn't. |
PR #99 was merged a long time ago so the only thing that is missing is ... a new release :) |
pytest-profile
usespipes.py
to create a pipe that converts a.prof
file to an.svg
using external programs, butpipes.py
only produces posix-shell commands. The pipe is defined bypytest-profile
as follows:At the last line of the above snippet,
pipes.py
callsos.system( str_command )
withstr_command
being the following literal:...which isn't valid Windows batch syntax.
The text was updated successfully, but these errors were encountered: