{"id":21570573,"url":"https://github.com/jcash/memprofile","last_synced_at":"2025-10-24T10:29:16.609Z","repository":{"id":151219628,"uuid":"118257314","full_name":"JCash/memprofile","owner":"JCash","description":"A dynamic library for profiling allocations in an application","archived":false,"fork":false,"pushed_at":"2022-10-06T21:01:46.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T17:06:05.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/JCash.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":"2018-01-20T15:55:40.000Z","updated_at":"2025-03-24T12:23:14.000Z","dependencies_parsed_at":"2023-06-26T09:30:17.061Z","dependency_job_id":null,"html_url":"https://github.com/JCash/memprofile","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/JCash%2Fmemprofile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCash%2Fmemprofile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCash%2Fmemprofile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCash%2Fmemprofile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JCash","download_url":"https://codeload.github.com/JCash/memprofile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748947,"owners_count":21637418,"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-11-24T11:13:09.566Z","updated_at":"2025-10-11T18:21:14.750Z","avatar_url":"https://github.com/JCash.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memprofile\n\nA dynamic library for profiling allocations in an application\n\nIt does this by loading a library dynamically, without any need to instrument the application itself.\n\nOn MacOS:\n\n    $ DYLD_INSERT_LIBRARIES=libmemprofile.dylib ./a.out\n\nOn Linux\n\n    $ LD_PRELOAD=libmemprofile.dylib ./a.out\n\n\nAnd the output will look like this:\n\n    $ DYLD_INSERT_LIBRARIES=libmemprofile.dylib ./a.out\n    Memory used: \n       Total:   512 bytes in 2 allocation(s)\n       At exit: 0 bytes in 0 allocation(s)\n\n\n## Known issues:\n\nCurrently only tested on MacOS\n\nCurrently, in my examples, there's always an initial ``realloc`` call of 256 bytes.\nI haven't traced the location of this call yet, please let me know if you know where it comes from :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcash%2Fmemprofile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcash%2Fmemprofile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcash%2Fmemprofile/lists"}