{"id":15973700,"url":"https://github.com/c-bata/pysigdump","last_synced_at":"2025-10-07T06:49:06.843Z","repository":{"id":57467059,"uuid":"226321706","full_name":"c-bata/pysigdump","owner":"c-bata","description":"Use signal to show stacktrace and garbage collection stats of a Python process.","archived":false,"fork":false,"pushed_at":"2019-12-06T14:13:16.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-22T21:51:28.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/sigdump/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-bata.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-06T12:07:27.000Z","updated_at":"2019-12-06T14:13:19.000Z","dependencies_parsed_at":"2022-09-10T02:01:30.217Z","dependency_job_id":null,"html_url":"https://github.com/c-bata/pysigdump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c-bata/pysigdump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fpysigdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fpysigdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fpysigdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fpysigdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-bata","download_url":"https://codeload.github.com/c-bata/pysigdump/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fpysigdump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734406,"owners_count":26036404,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-07T21:06:30.926Z","updated_at":"2025-10-07T06:49:06.815Z","avatar_url":"https://github.com/c-bata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pysigdump\n=========\n\nUse signal to show stacktrace and garbage collection stats of a Python process like `frsyuki/sigdump \u003chttps://github.com/frsyuki/sigdump\u003e`_.\n\nUsage\n-----\n\nServer example to enable sigdump is below:\n\n.. code-block:: python\n\n   import os\n   import sigdump\n   from wsgiref.simple_server import make_server\n\n\n   def application(env, start_response):\n       start_response('200 OK', [('Content-type', 'text/plain; charset=utf-8')])\n       return [b'Hello World']\n\n\n   if __name__ == '__main__':\n       sigdump.enable(verbose=True)  # just calling sigdump.signal().\n       httpd = make_server('', 8000, application)\n       httpd.serve_forever()\n\n.. code-block:: console\n\n   $ pip install sigdump\n   $ python example/wsgi.py\n   SIGDUMP is enabled. The result is exported to /tmp/sigdump-57650.log.\n\nThen sending a ``SIGCONT`` signal.\nPlease set ``SIGDUMP_SIGNAL`` environment variable if you want to change the signal.\n\n.. code-block:: console\n\n   $ kill -s SIGCONT 57650\n\nSee ``/tmp/sigdump-\u003cpid\u003e.log``.\nPlease set ``SIGDUMP_PATH`` environment variable if you want to change the output path.\nYou can set ``\"-\"`` here to dump to ``STDOUT``, or ``\"+\"`` to ``STDERR``.\n\n.. code-block:: console\n\n   $ less /tmp/sigdump-57650.log\n   Sigdump at 2019-12-06 21:04:55.071633 process 57650\n\n     Stacktrace:\n     File \"example/wsgi.py\", line 15, in \u003cmodule\u003e\n       httpd.serve_forever()\n     File \"/Users/c-bata/.pyenv/versions/3.7.1/lib/python3.7/socketserver.py\", line 232, in serve_forever\n       ready = selector.select(poll_interval)\n     File \"/Users/c-bata/.pyenv/versions/3.7.1/lib/python3.7/selectors.py\", line 415, in select\n       fd_event_list = self._selector.poll(timeout)\n\n      GC stat:\n        Generation 0:\n          collections   : 33\n          collected     : 99\n          uncollectable : 0\n        Generation 1:\n          collections   : 2\n          collected     : 253\n          uncollectable : 0\n        Generation 2:\n          collections   : 0\n          collected     : 0\n          uncollectable : 0\n\n\nLICENSE\n-------\n\n::\n\n   MIT License\n\n   Copyright (c) 2019 Masashi SHIBATA\n\n   Permission is hereby granted, free of charge, to any person obtaining a copy\n   of this software and associated documentation files (the \"Software\"), to deal\n   in the Software without restriction, including without limitation the rights\n   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n   copies of the Software, and to permit persons to whom the Software is\n   furnished to do so, subject to the following conditions:\n\n   The above copyright notice and this permission notice shall be included in all\n   copies or substantial portions of the Software.\n\n   THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n   SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fpysigdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-bata%2Fpysigdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fpysigdump/lists"}