Hello,
Is web2py track page load time somehow, so I can just pick it up this value
and display page load time to end user?
If not what could be a good way to monitor page load and display the page
load time in every view without degrading the performance too much?
I think about this :
# In models/db.py
import time
loading_start = time.time()
# in each controller or view
loading_end = time.time()
page_load_time = round(loading_end - loading_start, 3)
Page load time : {{=page_load_time}}
I found this too :
http://stackoverflow.com/questions/17751163/django-display-time-it-took-to-load-a-page-on-every-page
Thanks
Richard
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.