简体   繁体   中英

IntelliJ profiling Django application

I am developing a Django application inside IntelliJ. Now, I would like to profile it. To see, if some code is run more than it should if some queries are slow,...

All I can find is:

  • That exist debug tool that shows DB profile Link
  • Python profiler (like vmprof):

I did install vmprof and I run it. But my problem is, that all code inside all libraries is showed,... I can't find my code inside.. is there a way to configure to show only my code?

I use from time to time the profiling feature from Django Debug Toolbar.

在此处输入图像描述

在此处输入图像描述

It's really easy to use and it provides many more optimization capabilities as showing your database queries, where you can find which ones are repeated and optimize them.

Link to the library https://django-debug-toolbar.readthedocs.io/en/latest/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM