3 ms·
Its implimentation is much more complex but I'd recommend trying it as it's trivial to use in practice: - Find a suspiciously slow function using cProfile - pip
by tempay 9y ago
Its implimentation is much more complex but I'd recommend trying it as it's trivial to use in practice:
- Find a suspiciously slow function using cProfile
- pip install line_profiler
- Edit function to start with @profile
- Run kernprof
- Take a look at the output and act accordigly