cprofiler-manager-wrapper


Namecprofiler-manager-wrapper JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/Rwwwrl/SimpleProfiler
Summarysimple_profiler
upload_time2023-12-29 09:02:42
maintainer
docs_urlNone
authorAlexey Sosov
requires_python>=3.8
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ### Install

`pip install cprofiler-manager-wrapper`

### Usage

```python
from cprofiler_manager_wrapper import Profiler


def func_to_profile():
    from time import sleep

    result = []
    for i in range(10):
        result.append(i)
    sleep(1)

    a = 10

    return 'hello world'


with Profiler(func_about_string='func', disable=False):
    func_to_profile()
```

По итогу будет создана, если ее не было, папка _prof_folder_, внутри которой будет лежат файл _<some>.prof_

Для открытия .prof файла используется **snakeviz** - `snakeviz prof_folder/<some>.prof`
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Rwwwrl/SimpleProfiler",
    "name": "cprofiler-manager-wrapper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Alexey Sosov",
    "author_email": "lesh.solowiew@yandex.ru",
    "download_url": "https://files.pythonhosted.org/packages/df/83/9e57851b8bac243170013371554b3de49cd1cf3e87bfcea30013e95d4c70/cprofiler_manager_wrapper-0.0.6.tar.gz",
    "platform": null,
    "description": "### Install\n\n`pip install cprofiler-manager-wrapper`\n\n### Usage\n\n```python\nfrom cprofiler_manager_wrapper import Profiler\n\n\ndef func_to_profile():\n    from time import sleep\n\n    result = []\n    for i in range(10):\n        result.append(i)\n    sleep(1)\n\n    a = 10\n\n    return 'hello world'\n\n\nwith Profiler(func_about_string='func', disable=False):\n    func_to_profile()\n```\n\n\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430, \u0435\u0441\u043b\u0438 \u0435\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e, \u043f\u0430\u043f\u043a\u0430 _prof_folder_, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442 \u0444\u0430\u0439\u043b _<some>.prof_\n\n\u0414\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f .prof \u0444\u0430\u0439\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f **snakeviz** - `snakeviz prof_folder/<some>.prof`",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "simple_profiler",
    "version": "0.0.6",
    "project_urls": {
        "Homepage": "https://github.com/Rwwwrl/SimpleProfiler"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df839e57851b8bac243170013371554b3de49cd1cf3e87bfcea30013e95d4c70",
                "md5": "1e9a9e7764d2ee5e917e1bb03661c4a4",
                "sha256": "aaf390c2c274ff2b5853e154d15b5244777da28ac11460d537be05013d2213c1"
            },
            "downloads": -1,
            "filename": "cprofiler_manager_wrapper-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "1e9a9e7764d2ee5e917e1bb03661c4a4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2542,
            "upload_time": "2023-12-29T09:02:42",
            "upload_time_iso_8601": "2023-12-29T09:02:42.276425Z",
            "url": "https://files.pythonhosted.org/packages/df/83/9e57851b8bac243170013371554b3de49cd1cf3e87bfcea30013e95d4c70/cprofiler_manager_wrapper-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-29 09:02:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Rwwwrl",
    "github_project": "SimpleProfiler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cprofiler-manager-wrapper"
}
        
Elapsed time: 0.34278s