H
H
Hikanosu2021-07-05 13:02:59
Python
Hikanosu, 2021-07-05 13:02:59

How to profile asynchronous code?

There is an asynchronous python bot that always flies with any load, but after one of the latest updates and the addition of new functionality, when many people use this new functionality, the bot responds for 5-10 seconds, i.e. with a delay, optimizations did not help and only slightly reduced the response time. At the same time, nothing serious is being done in this new functionality. I decided to profile the code, but how to profile asynchronous code in python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2021-07-05
@Hikanosu

Googled Yappi .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question