How to profile my code?

前端 未结 3 1805
执笔经年
执笔经年 2020-12-07 16:04

I want to know how to profile my code.

I have gone through the docs, but as there were no examples given I could not get anything from it.

I have a large cod

3条回答
  •  [愿得一人]
    2020-12-07 16:46

    Use cProfile. You can use it from the command line and pass in your module as a parameter, so you don't need a main method.

提交回复
热议问题