Django Debug Toolbar: understanding the time panel

后端 未结 1 499
庸人自扰
庸人自扰 2020-12-23 11:52

I\'m running the Django Debug Toolbar to profile my site and try to figure out why certain views are taking so long. It\'s been immensely valuable with regards to seeing wha

相关标签:
1条回答
  • 2020-12-23 12:18

    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".

    0 讨论(0)
提交回复
热议问题