Request and basic profiling information for Flask
Most web frameworks let you know the amount of time that it took to process a certain page request. I'm starting to work with Flask framework now and am very much in need of this information but can't find any good way of getting it. Using the werkzeug Midleware profiler is an option, but it is very verbose and provides too much information, I would ideally want to see in the basic log output "request info - 0.2s" or whatever the time is. Is there a way of doing this? Also, is there anyway of doing this same thing with SQLite? I.e., getting a count o开发者_如何学Pythonf the number of sqlite calls and their times for a specific request?
You should have a look at flask-debugtoolbar
, it's basically the same as the django-debug-toolbar
(if you ever used it) ported to Flask
.
精彩评论