{"id":16511081,"url":"https://github.com/scopatz/memleak","last_synced_at":"2025-10-20T04:06:14.872Z","repository":{"id":18870305,"uuid":"22087284","full_name":"scopatz/memleak","owner":"scopatz","description":"some xd tests","archived":false,"fork":false,"pushed_at":"2014-07-22T18:13:22.000Z","size":153,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T19:52:27.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/scopatz.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":"2014-07-22T02:01:55.000Z","updated_at":"2014-07-22T02:03:43.000Z","dependencies_parsed_at":"2022-09-25T03:00:37.270Z","dependency_job_id":null,"html_url":"https://github.com/scopatz/memleak","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fmemleak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fmemleak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fmemleak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fmemleak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scopatz","download_url":"https://codeload.github.com/scopatz/memleak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241476435,"owners_count":19968916,"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-10-11T15:58:45.254Z","updated_at":"2025-10-20T04:06:09.852Z","avatar_url":"https://github.com/scopatz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"memory leak tests\n=================\nThis tries a bunch of potential causes of a memory leak in gidden/cyclopts.\n\nA plotting script is provided that can plot the results for any of the following\ntests. For example, one can plot the results ``pttest.py`` by ::\n\n    $ ./pttest.py \u003e out\n    $ ./plt.py out\n    $ eog fig.png\n\nAn arbitrary number of files can be plotted against each other, e.g. ::\n\n    $ ./pttest.py \u003e out.pt\n    $ ./pttest-np.py \u003e out.np\n    $ ./plt.py out.pt out.np\n    $ eog fig.png\n\nTest 1: xdress\n--------------\nThis is not the cause.  To replicate run::\n\n    $ xdress --debug\n    $ ./setup.py build\n    $ ./memtest.py\n\nPlay around with the ``N`` value in memtest and un/comment the gc.collect() call\ninside of the loop.  If you are running h/top you'll see that the memory \nresources are cleaned up correctly.\n\nTest 2: pytables row\n--------------------\nThis test definitely mem leaks. This uses the table row object and the \nmemory leak seems to be fairly fast.  Run this test with::\n\n    $ ./pttest.py\n\nTest 3: pytables append\n------------------------\nThis test uses the table append() method rather than the row object. \nIt also directly appends numpy arrays.  This may have a minor memory \nleak but it is much slower.  Run this test with::\n\n    $ pttest-np.py\n\nConclusion\n----------\nThe row attr should probably be avoided, not just because it is slow!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscopatz%2Fmemleak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscopatz%2Fmemleak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscopatz%2Fmemleak/lists"}