cubicweb.pyramid.profile
Contents
cubicweb.pyramid.profile
#
Tools for profiling.
See Profiling.
Views#
WSGI#
- cubicweb.pyramid.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
requests- Parameters
filename â The filename to dump the stats to.
dump_every â Number of requests after which to dump the stats.