Empfohlenes Vorgehen zum Profilieren von Python-Skripten
Angenommen, wir wollen myscript.py profilieren, führe aus:
profile_commands.sh
python3 -m cProfile -o myscript.profile myscript.pyUm es anzusehen, empfehle ich dringend runsnakerun:
runsnake_view_profile.sh
runsnake myscript.profileDu kannst runsnake auf Ubuntu installieren mit
install_runsnakerun.sh
sudo apt -y install runsnakerunCheck out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow