Django Debug Toolbar: understanding the time panel

[亡魂溺海] 提交于 2019-11-29 20:36:56
Chris Pratt

User CPU time: The time your server-side code ran while processing the request

System CPU time: The time operating system code called by your server-side code ran while processing the request

Total CPU time: total time to fully respond once request was received (user+system)

Elapsed time: Time since request was made.

Context switches: This has to do with threads. Voluntary switches are times when a thread slept of its own accord (usually to wait for some of processing to occur that it needs to continue), whereas involuntary switches are times when the system forced a thread to sleep in order to run some other thread (usually part of asynchronous processes). It's actually pretty low-level system stuff, that I couldn't do justice to here. If you're interested in learning more, just search for "context switching".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!