Created
January 30, 2019 21:16
-
-
Save joonro/f8deb8c006ec868acffab12e03402e90 to your computer and use it in GitHub Desktop.
[Profiling] #python profiling and viewing with SnakeViz (http://jiffyclub.github.io/snakeviz/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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