Add elapsed request time to the development server log
|Reported by:||vaughnkoch||Owned by:||vaughnkoch|
|Severity:||Normal||Keywords:||log time development server|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When doing performance testing on your code, it's helpful to see how long a request takes to be served.
This ticket/patch adds the elapsed time in seconds to the end of each HTTP request line in the development server log.
Validating models... 0 errors found Django version 1.2.1, using settings 'weeplaces.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [07/Nov/2010 15:57:17] "GET / HTTP/1.1" 200 11308 0.26 [07/Nov/2010 15:57:27] "GET /media/css/reset.css HTTP/1.1" 304 0 0.05
The 0.26 for the first GET request indicates that it took a quarter of a second to serve the root page.
Change History (10)
Changed 3 years ago by vaughnkoch
comment:1 Changed 3 years ago by vaughnkoch
- Owner changed from nobody to vaughnkoch
- Status changed from new to assigned
comment:8 Changed 3 years ago by julien
- Resolution set to wontfix
- Severity set to Normal
- Status changed from assigned to closed
- Type set to Uncategorized