Demo entry 3548869

vmprof for the beginner

   

Submitted by jkogut on Jan 19, 2016 at 19:15
Language: Python Traceback. Code size: 2.2 kB.

jkogut@pertzoffka:~/dev/python/vmprof-python$ pip install vmprof
Requirement already satisfied (use --upgrade to upgrade): vmprof in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from vmprof)
Requirement already satisfied (use --upgrade to upgrade): click in /usr/local/lib/python2.7/dist-packages (from vmprof)
Cleaning up...

jkogut@pertzoffka:~/dev/python/vmprof-python$ python -m vmprof
usage: vmprof [-h] [--config CONFIG] [--period PERIOD] [--web-auth WEB_AUTH]
              [--web-url url] [--web | --output file.prof]
              program ...
vmprof: error: too few arguments

jkogut@pertzoffka:~/dev/python/vmprof-python$ pypy test/cpuburn.py
Traceback (most recent call last):
  File "app_main.py", line 75, in run_toplevel
IOError: [Errno 2] No such file or directory: 'test/cpuburn.py'

jkogut@pertzoffka:~/dev/python/vmprof-python$ pypy tests/cpuburn.py 
Traceback (most recent call last):
  File "app_main.py", line 75, in run_toplevel
  File "tests/cpuburn.py", line 3, in <module>
    import vmprof
ImportError: No module named vmprof

jkogut@pertzoffka:~/dev/python/vmprof-python$ pypy tests/cpuburn.py 
Traceback (most recent call last):
  File "app_main.py", line 75, in run_toplevel
  File "tests/cpuburn.py", line 3, in <module>
    import vmprof
ImportError: No module named vmprof

jkogut@pertzoffka:~/dev/python/vmprof-python$ pypy
Python 2.7.8 (f5dcc2477b97, Sep 18 2014, 11:33:30)
[PyPy 2.4.0 with GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> import vmprof
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "vmprof/__init__.py", line 4, in <module>
    from . import cli
  File "vmprof/cli.py", line 4, in <module>
    from six.moves import configparser
ImportError: No module named six

jkogut@pertzoffka:~/dev/python/vmprof-python$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import six
>>>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).