I have identified some long running pytest tests with
py.test --durations=10
I would like to instrument one of those tests now with something
Have you tried the pytest-profiling plugin?