Django middleware for performance profiling directly from the browser