Skip to content

Instantly share code, notes, and snippets.

@joonro
Created January 30, 2019 21:16
Show Gist options
  • Select an option

  • Save joonro/f8deb8c006ec868acffab12e03402e90 to your computer and use it in GitHub Desktop.

Select an option

Save joonro/f8deb8c006ec868acffab12e03402e90 to your computer and use it in GitHub Desktop.
[Profiling] #python profiling and viewing with SnakeViz (http://jiffyclub.github.io/snakeviz/)
# you can pass command line argument as you normally would:
$ python -m cProfile -o mcmc_hmm.prof mcmc_hmm.py estimate --niter=20000
# Use SnakeViz (install with $ pip install snakeviz) to view the profile results:
$ snakeviz profile.prof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment