Replies: 1 comment
-
|
你可以使用 py-spy,viztracer 之类的工具对运行期间各个函数的耗时情况进行统计。或者可以在卡住的时候看看进程在干啥。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
最近注意到我的 bot 延迟很大,由于 nonebot2 有很多异步调用导致 cProfile 这类传统工具的分析效果并不理想。且由于我的 bot 有大概 40 个插件且大部分插件都有效,短期内不大可能通过单独排除插件的方法来手动测试。因此想问问有没有更加高效的监控方法
或者更进一步,nonebot2 是否会在未来考虑开发资源/延迟监控相关的功能?
Beta Was this translation helpful? Give feedback.
All reactions