Skip to content

Instantly share code, notes, and snippets.

@Makistos
Created May 3, 2019 19:51
Show Gist options
  • Save Makistos/d9014b618d3495290ecf2b4aa1f734d1 to your computer and use it in GitHub Desktop.
Save Makistos/d9014b618d3495290ecf2b4aa1f734d1 to your computer and use it in GitHub Desktop.
Script to handle output from cProfile. #python #profiling
import pstats
pstats.Stats('prof').strip_dirs().sort_stats("cumulative").print_stats()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment