In order to profile my code, I've installed pytest-profiling and run
$ pytest --profile
However, almost all of the results in the summary are related to functions in pytest itself:
ncalls tottime percall cumtime percall filename:lineno(function)
159 0.001 0.000 0.170 0.001 runner.py:108(pytest_runtest_protocol)
159 0.001 0.000 0.143 0.001 runner.py:116(runtestprotocol)
...
2615/1749 0.015 0.000 0.131 0.000 _callers.py:9(_multicall)
...
Is there a way to get the profiler to ignore pytest's functions and get instead the stats for my package?
from pytest profiling mostly reporting on pytest functions
No comments:
Post a Comment