DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Finding slow code with wrapture

Quality: 9/10 Relevance: 9/10

Summary

The article demonstrates how to use wrapture to diagnose slow code paths in a Flask-based shop by measuring self-time versus observed time. It provides code examples for binding components, running tests, and generating per-request timings, then uses an aggregate collector to produce a run-wide performance report. The piece emphasizes instrumentation without intrusive profiling and shows how to tag requests to isolate slow tenants or endpoints.

🚀 Service construit par Johan Denoyer