We need some tool for analyzing non view functions of our django project particularly the celery-beat tasks. So, is there any tool for profiling queries and latency of running ordinary functions (not views) in a django app? Preferably, is there any decorators (or any other mechanism) that can add results of profiling an ordinary function to the output of tools like django-silk or django-debug-toolbar?
问问题
89 次
1 回答
0
最后,我使用了 Silk 中间件代码并制作了一个装饰器来分析请求等随机函数,然后用它来分析我的任务。这在某种程度上是不完整的,但有效。代码可在此处访问。
于 2021-09-29T07:16:15.543 回答