what-studio / profiling

Was an interactive continuous Python profiler.
BSD 3-Clause "New" or "Revised" License
2.97k stars 113 forks source link

Created a new `dump` public method #49

Closed mcdoker18 closed 6 years ago

mcdoker18 commented 6 years ago

This method allows to create a profile dump file using Python API

Signed-off-by: Vitalii Solodilov mcdkr@yandex.ru

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 57.059% when pulling 73ff6abf30487fcab7c2ef45f9e54192fe9eb112 on mcdoker18:impr/dump_api into 19c458c24c397628d73c6bdbfba06bd0153de452 on what-studio:master.

mcdoker18 commented 6 years ago

If you don't mind the changes. Can you help me with python 3.3. test?

Collecting gevent>=1.1a1
  Downloading https://files.pythonhosted.org/packages/f8/85/f92a8f43c9f15ffad49d743d929863a042ce3e8de5746c63bb4d6ce51a02/gevent-1.3.4.tar.gz (4.6MB)
    100% |████████████████████████████████| 4.6MB 225kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-nm40uv/gevent/setup.py", line 417, in <module>
        run_setup(EXT_MODULES, run_make=_BUILDING)
      File "/tmp/pip-build-nm40uv/gevent/setup.py", line 401, in run_setup
        "signal_os_incompat = gevent.monkey:_subscribe_signal_os",
      File "/opt/python/3.3.6/lib/python3.3/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/setuptools/dist.py", line 268, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/pkg_resources/__init__.py", line 804, in resolve
        requirements = list(requirements)[::-1]
      File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/pkg_resources/__init__.py", line 2930, in parse_requirements
        "version spec")
      File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/pkg_resources/__init__.py", line 2906, in scan_list
        raise RequirementParseError(msg, line, "at", line[p:])
    pkg_resources.RequirementParseError: Expected ',' or end-of-list in cffi >= 1.11.5 ; sys_platform == 'win32' and platform_python_implementation == 'CPython' at  ; sys_platform == 'win32' and platform_python_implementation == 'CPython'
sublee commented 6 years ago

Thanks for the great work. The build failure is not due to your patch. So I'll fix the failure after merging it.