Closed
Description
OS version: Windows 10
Python Version: 3.6.5
pytest version: 3.7.3
pytest-profiling version: 1.3.0
Executing pytest --profile
works fine for me, but when I use the pytest --profile-svg
I have the following output
(py36) λ pytest --profile-svg
=== test session starts ===============================
platform win32 -- Python 3.6.5, pytest-3.7.3, py-1.5.3, pluggy-0.7.1
PyQt5 5.6 -- Qt runtime 5.6.2 -- Qt compiled 5.6.2
rootdir: W:\tmp2\profiling_test, inifile:
plugins: xdist-1.23.0, timeout-1.3.2, replay-0.2.2, regressions-1.0.1, qt-2.4.1, profiling-1.3.0, mock-1.10.0, localserver-0.4.1, lazy-fixture-0.3.0, forked-0.2, datadir-1.2.1, cpp-1.1.0, cov-2.5.1, pylama-7.4.3, hypothesis-3.11.0
collected 1 item
test_foo.py . [100%]The syntax of the command is incorrect.
Profiling (from W:\tmp2\profiling_test\prof\combined.prof):
Wed Sep 5 11:09:28 2018 W:\tmp2\profiling_test\prof\combined.prof
199 function calls (197 primitive calls) in 0.004 seconds
Ordered by: cumulative time
List reduced from 92 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.003 0.003 runner.py:107(pytest_runtest_call)
1 0.000 0.000 0.003 0.003 python.py:1448(runtest)
1 0.000 0.000 0.003 0.003 hooks.py:244(__call__)
1 0.000 0.000 0.003 0.003 manager.py:64(_hookexec)
1 0.000 0.000 0.003 0.003 manager.py:58(<lambda>)
1 0.000 0.000 0.003 0.003 callers.py:151(_multicall)
1 0.000 0.000 0.003 0.003 python.py:186(pytest_pyfunc_call)
1 0.000 0.000 0.003 0.003 test_foo.py:1(testFoo)
1 0.003 0.003 0.003 0.003 test_foo.py:2(<listcomp>)
7/5 0.000 0.000 0.000 0.000 {built-in method builtins.next}
2 0.000 0.000 0.000 0.000 capture.py:206(pytest_runtest_call)
5 0.000 0.000 0.000 0.000 {method 'send' of 'generator' objects}
2 0.000 0.000 0.000 0.000 capture.py:164(item_capture)
1 0.000 0.000 0.000 0.000 contextlib.py:85(__exit__)
1 0.000 0.000 0.000 0.000 capture.py:121(read_global_capture)
1 0.000 0.000 0.000 0.000 capture.py:482(readouterr)
2 0.000 0.000 0.000 0.000 capture.py:578(snap)
2 0.000 0.000 0.000 0.000 capture.py:539(snap)
2 0.000 0.000 0.000 0.000 {method 'read' of '_io.FileIO' objects}
1 0.000 0.000 0.000 0.000 runner.py:129(_update_current_test_var)
SVG profile in W:\tmp2\profiling_test\prof\combined.svg.
And the combined.svg file is not generated.
Metadata
Metadata
Assignees
Labels
No labels