{"id":15009839,"url":"https://github.com/mirecl/pprof","last_synced_at":"2025-04-09T17:52:19.274Z","repository":{"id":38196281,"uuid":"473609611","full_name":"mirecl/pprof","owner":"mirecl","description":"Python profiling tool  ","archived":false,"fork":false,"pushed_at":"2025-01-28T11:14:37.000Z","size":698,"stargazers_count":15,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:51:31.711Z","etag":null,"topics":["perfomance","profiling","profiling-library","pypi","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pprof","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirecl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-24T13:05:50.000Z","updated_at":"2024-11-14T13:45:47.000Z","dependencies_parsed_at":"2023-12-05T13:26:27.103Z","dependency_job_id":"ec4ff63f-4b19-4c94-8382-e3028688dd6c","html_url":"https://github.com/mirecl/pprof","commit_stats":{"total_commits":81,"total_committers":3,"mean_commits":27.0,"dds":0.345679012345679,"last_synced_commit":"3bea6b013253514bf9e85e446a5255a1aac04ba2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fpprof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fpprof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fpprof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fpprof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirecl","download_url":"https://codeload.github.com/mirecl/pprof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083281,"owners_count":21045071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["perfomance","profiling","profiling-library","pypi","python","python3"],"created_at":"2024-09-24T19:28:50.362Z","updated_at":"2025-04-09T17:52:19.252Z","avatar_url":"https://github.com/mirecl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mirecl/pprof\"\u003e\u003cimg src=\"https://github.com/mirecl/pprof/blob/master/examples/report.png?raw=true\" alt=\"pprof\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/pprof\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/pprof\" alt=\"PyPi\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pepy.tech/project/pprof\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://pepy.tech/badge/pprof\" alt=\"PePy\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/psf/black\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/code%20style-black-000000.svg\" alt=\"Black\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/mirecl/pprof/blob/master/LICENSE\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/l/pprof\" alt=\"License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/mirecl/pprof/actions/workflows/test.yaml\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://github.com/mirecl/pprof/actions/workflows/test.yaml/badge.svg\" alt=\"Test\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/mirecl/pprof\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://codecov.io/gh/mirecl/pprof/branch/master/graph/badge.svg?token=UFDA1JG40A\" alt=\"Test\"\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://pypi.org/project/pprof/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9-blue?logoColor=white\u0026logo=python\" alt=\"PyPi\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/mirecl/pprof\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/OS-win%20%7C%20mac%20%7C%20linux-green\" alt=\"OS\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n---\n\n## Installing\n\n```sh\npip install pprof\n```\n\nor\n\n```sh\npoetry add pprof\n```\n\n## A Simple Example\n\n```python\nfrom time import sleep\nfrom typing import List\nfrom pprof import cpu\n\ncpu.auto_report()\n\ndef foo():\n    sleep(1.01)\n    return 3\n\n@cpu\ndef run(arr: List) -\u003e float:\n    tmp = []\n    cnt = foo()\n\n    # comment action #1\n    for row in arr:\n        # comment action #2 row 1\n        # comment action #2 row 2\n        if row % cnt == 0:\n            tmp.append(row)\n    result = (sum(tmp * 200) + len(arr)) / len(tmp)  # comment action #3\n    return result\n\nrun(list(range(250000)))\n```\n\n```sh\n(venv) python run.py\n```\n\n## Links\n\n+ **line_profiler** (\u003chttps://github.com/pyutils/line_profiler\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirecl%2Fpprof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirecl%2Fpprof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirecl%2Fpprof/lists"}