Profile and Tune Your Algorithm’s Performance with vprof¶
Example tool for to profiling algorithm performance for:
- CPU
- Memory
- Profiler
- Heatmap
The pip includes vprof for profiling algorithm code performance
Start vprof in remote mode in a first terminal
Note
This command will start a webapp on port
3434
vprof -r -p 3434
Start Profiler in a second terminal
Note
This command pushes data to the webapp in the other terminal listening on port
3434
vprof -c cm ./analysis_engine/perf/profile_algo_runner.py