Tools for profiling.
View that handle ‘/_profile/ping’
It simply reply ‘ping’, without requiring connection to the repository. It is a useful as a comparison point to evaluate the actual overhead of more costly views.
- 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
filename – The filename to dump the stats to.
dump_every – Number of requests after which to dump the stats.