{"id":19561260,"url":"https://github.com/srgchrksv/memory-profiler","last_synced_at":"2026-06-13T17:33:09.810Z","repository":{"id":246168604,"uuid":"813761877","full_name":"srgchrksv/memory-profiler","owner":"srgchrksv","description":"Example of memory usage investigation with memory-profiler","archived":false,"fork":false,"pushed_at":"2024-06-26T07:50:30.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T08:43:48.160Z","etag":null,"topics":["benchmarks","memory","memory-management","memory-profiler","mprof","python","ram"],"latest_commit_sha":null,"homepage":"","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/srgchrksv.png","metadata":{"files":{"readme":"Readme.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-11T17:33:33.000Z","updated_at":"2024-06-26T07:50:33.000Z","dependencies_parsed_at":"2024-06-26T09:09:44.587Z","dependency_job_id":null,"html_url":"https://github.com/srgchrksv/memory-profiler","commit_stats":null,"previous_names":["srgchrksv/memory-profiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srgchrksv/memory-profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgchrksv%2Fmemory-profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgchrksv%2Fmemory-profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgchrksv%2Fmemory-profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgchrksv%2Fmemory-profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srgchrksv","download_url":"https://codeload.github.com/srgchrksv/memory-profiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgchrksv%2Fmemory-profiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34294411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":["benchmarks","memory","memory-management","memory-profiler","mprof","python","ram"],"created_at":"2024-11-11T05:10:19.009Z","updated_at":"2026-06-13T17:33:09.790Z","avatar_url":"https://github.com/srgchrksv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memory-profiler\n\nWhen processing large datasets it is important to use memory with maximum efficiency. Or you can get out of RAM, job will not be done and machine can become unresponsive.\n\n### Example of memory usage investigation\n\nOur task is to apply face mesh on each image from a dataset. For face mesh we will use google's mediapipe package. \n\n*First example is creating an instance of a very complex object FaceMesh() on each iteration.*\n![plots/linear.png](plots/linear.png)\n\n*Second example is creating and closes an instance of a very complex object FaceMesh() on each iteration.*\n![plots/logn.png](plots/logn.png)\n\n*Third example once creates an instance of a very complex object FaceMesh() and reuses it on each iteration.*\n![plots/constant.png](plots/constant.png)\n\n## To run memory profiling benchmarks\nInstall required packages with `pip install -r requirements.txt`\n\nHave a `./images` directory with images.\n\nCheck and run `profiling.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrgchrksv%2Fmemory-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrgchrksv%2Fmemory-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrgchrksv%2Fmemory-profiler/lists"}