Profiling Eventlet

I wanted to profile our system that is using eventlet. I wasn't happy with any of the existing solutions so I rolled my own:

The existing solutions have a few failures:

  • You can't figure out how much time a specific function spends calling another function
  • They generally use CPU time used instead of wall clock time (which is useful if your bottleneck is MySQL or similar)
  • They don't track how much time is spent doing nothing (i.e. waiting for greenlets to finish)

Feedback is welcome!


blog comments powered by Disqus

Colin Howe

I'm Colin. I like coding, ultimate frisbee and startups. I am VP of engineering at Conversocial