profiling

1 Article

Measuring the performance of Python chunks in different environments

A tiny context manager for timing specific chunks of Python code, and how to switch it on only in development and staging without touching the source.