{"id":13781853,"url":"https://github.com/mgedmin/profilehooks","last_synced_at":"2025-05-14T04:07:45.936Z","repository":{"id":3496210,"uuid":"4552688","full_name":"mgedmin/profilehooks","owner":"mgedmin","description":"Python decorators for profiling/tracing/timing a single function","archived":false,"fork":false,"pushed_at":"2025-01-20T12:15:41.000Z","size":201,"stargazers_count":331,"open_issues_count":12,"forks_count":30,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-10T22:29:07.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mg.pov.lt/profilehooks/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"google/btree","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgedmin.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"mgedmin"}},"created_at":"2012-06-04T21:24:25.000Z","updated_at":"2025-03-30T06:39:02.000Z","dependencies_parsed_at":"2023-01-13T12:33:28.485Z","dependency_job_id":"81514c07-17a6-4975-8404-9b2482573829","html_url":"https://github.com/mgedmin/profilehooks","commit_stats":{"total_commits":194,"total_committers":5,"mean_commits":38.8,"dds":"0.061855670103092786","last_synced_commit":"c3fc0788cfc11b717a71899a6e464d323a908858"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fprofilehooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fprofilehooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fprofilehooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fprofilehooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgedmin","download_url":"https://codeload.github.com/mgedmin/profilehooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254069289,"owners_count":22009523,"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":[],"created_at":"2024-08-03T18:01:30.071Z","updated_at":"2025-05-14T04:07:45.915Z","avatar_url":"https://github.com/mgedmin.png","language":"Python","funding_links":["https://ko-fi.com/mgedmin"],"categories":["Python decorator in the wild"],"sub_categories":[],"readme":"profilehooks\n============\n\n.. image:: https://github.com/mgedmin/profilehooks/actions/workflows/build.yml/badge.svg?branch=master\n    :target: https://github.com/mgedmin/profilehooks/actions\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/mgedmin/profilehooks?branch=master\u0026svg=true\n   :target: https://ci.appveyor.com/project/mgedmin/profilehooks\n\n.. image:: https://coveralls.io/repos/mgedmin/profilehooks/badge.svg?branch=master\n   :target: https://coveralls.io/r/mgedmin/profilehooks\n\n\nIt's a collection of decorators for profiling functions.  E.g. to profile a\nsingle function::\n\n    from profilehooks import profile\n\n    @profile\n    def my_function(args, etc):\n        pass\n\nThe results will be printed when the program exits (or you can use\n``@profile(immediate=True)``).\n\nIf you're interested in coarse timings and don't want to pay for the overhead\nof profiling, use ::\n\n    from profilehooks import timecall\n\n    @timecall       # or @timecall(immediate=True)\n    def my_function(args, etc):\n        pass\n\nFinally, you may be interested in seeing line coverage for a single function ::\n\n    from profilehooks import coverage\n\n    @coverage\n    def my_function(args, etc):\n        pass\n\nAlso functions can be available in Python console or module if run it with -m arg ::\n\n     $ python -m profilehooks\n     \u003e\u003e\u003e profile\n     \u003cfunction profile at 0x1005c6488\u003e\n\n     $ python -m profilehooks yourmodule\n\nFull documentation is available through ``pydoc profilehooks`` after\ninstallation.\n\nThe home page for this module is https://mg.pov.lt/profilehooks.  It has\nscreensho, uh, that is, more examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgedmin%2Fprofilehooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgedmin%2Fprofilehooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgedmin%2Fprofilehooks/lists"}