I run a particular test-case via tox:
tox -e myenv foo.tests.test_foo.SomeTestCase
This takes 30 seconds.
The test itself is very simple and fast. But there seem to be a lot happening before the test starts to run.
How can I trace/profile the things which happen before the test runs?
Profiling only tox won't help I guess, because tox does not do much. Tox spawns subprocesses which take too long.