django调试工具栏的模板flamegraphs
django-debug-toolbar-template-flamegraph的Python项目详细描述
#django调试工具栏模板flamegraph
这提供了一个django调试工具栏面板,它生成用于呈现模板的[flame graph](http://www.brendangregg.com/flamegraphs.html)。
它可能值得与[template profiler](https://github.com/node13h/django-debug-toolbar-template-profiler)和/或[template timings](https://github.com/orf/django-debug-toolbar-template-timings)面板一起使用。
它借鉴了23andme的[djdt flame graph](https://github.com/23andMe/djdt-flamegraph)。
##设置
- 通过
pip
安装django-debug-toolbar-template-flamegraph
- 将
'template_flamegraph'
添加到INSTALLED_APPS
- 将
'template_flamegraph.TemplateFlamegraphPanel'
添加到DEBUG_TOOLBAR_PANELS