Tips¶
- cProfile(implemented in C) is preferred over- profile(implemented in Python).
- The profiler modules ( - cProfileand- profile) and tools based on them (e.g.,- %prunand- %%prunfor notebook) are designed to provide an execution profile for a given program, not for benchmarking purposes (for that, there is- time