bofh19 / yappi

Automatically exported from code.google.com/p/yappi
MIT License
0 stars 0 forks source link

Implement yappi.__main__ #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please implement a __main__ like the one cProfile and profile have, that allow 
yappi to be run as a module. It's a pain to have to add yappi code to each 
program.

Example:
$ python3 -m yappi -s time myscript.py

Original issue reported on code.google.com by anacrolix@gmail.com on 27 Nov 2011 at 8:33

GoogleCodeExporter commented 9 years ago
Consider it done. Thanks for the suggestion.

Original comment by sum...@gmail.com on 2 Dec 2011 at 9:21

GoogleCodeExporter commented 9 years ago
Hi,

I have added the "run as script" functionality to yappi in the development 
sources. You can get it from http://bitbucket.org/sumerc/yappi. However, 
currently, yappi.py needs to be included in your PATH variable of course (or 
simply copy it to your desired folder). I will try to overcome this limitation 
in the next release by fiddling with the setup script.

Example:
python -m yappi file.py args

Thanks,

Original comment by sum...@gmail.com on 3 Dec 2011 at 1:44

GoogleCodeExporter commented 9 years ago
Great work, thanks.

Original comment by anacrolix@gmail.com on 6 Dec 2011 at 8:08

GoogleCodeExporter commented 9 years ago

Original comment by sum...@gmail.com on 7 Jan 2012 at 6:13