Skip to content

Instantly share code, notes, and snippets.

@ashwin
Created May 5, 2012 05:20
Show Gist options
  • Save ashwin/2599993 to your computer and use it in GitHub Desktop.
Save ashwin/2599993 to your computer and use it in GitHub Desktop.
Profiling in Python
# Assuming we want to profile function doMain()
import cProfile
cProfile.run( "doMain( a, b )" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment