Profiling a Python script
Use the below command to profile a python script. Find which step is taking most of the time and remove bottleneck
Python: 3.0    Anurag Rana    06 Sep 2021   0
Login to upvote
1
python3 -m cProfile a.py
Copy | Download as: .py file   PNG
Share on: FB   Twitter   LinkedIn   WA
©2021 - code108labs   Contributors   Hosted on DigitalOcean   Partner website: pythoncircle.com