pyramid_cubicweb.profile
¶
Tools for profiling.
See Profiling.
Views¶
WSGI¶
-
pyramid_cubicweb.profile.
wsgi_profile
(app, filename='program.prof', dump_every=50)[source]¶ A WSGI middleware for profiling
It enable the profiler before passing the request to the underlying application, and disable it just after.
The stats will be dumped after
dump_every
requestsParameters: - filename – The filename to dump the stats to.
- dump_every – Number of requests after which to dump the stats.