[openstack-dev] profiling code in tests that include eventlet?

Sean Dague sean at dague.net
Thu Dec 4 14:13:24 UTC 2014


I'd like to get a bit better data on where we're spending all our time
in tests in Nova (and just in general).

It doesn't appear there is a clear way to do that with testr. The
following wraps the tests runs in cProfile -
https://review.openstack.org/#/c/138440/2/tools/profile.py,cm

However, as was correctly pointed out by marun, eventlet causes some
determinism issues here.

My attempts to use GreenletProfiler end in segfaults -
http://emptysqua.re/blog/greenletprofiler/

I also looked a bit into the profiler that is shipped with eventlet,
however that's triggering import errors that are a bit wonky.

Mostly, I'm trying to figure out if anyone in our community has
developed a pattern here before I keep banging my head into this one. We
can do a lot of guessing without real profiling about where time is
spent, but I'd like to be a little more data driven.

	-Sean

-- 
Sean Dague
http://dague.net



More information about the OpenStack-dev mailing list