{"id":16812771,"url":"https://github.com/ichizok/vim-perf","last_synced_at":"2025-04-11T01:43:50.865Z","repository":{"id":21462922,"uuid":"24781387","full_name":"ichizok/vim-perf","owner":"ichizok","description":"Vim performance profiler, powered by gperftools.","archived":false,"fork":false,"pushed_at":"2019-02-14T09:30:30.000Z","size":6,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T22:51:17.618Z","etag":null,"topics":["vim"],"latest_commit_sha":null,"homepage":"","language":"C","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/ichizok.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}},"created_at":"2014-10-04T04:04:23.000Z","updated_at":"2023-04-07T00:50:54.000Z","dependencies_parsed_at":"2022-07-23T09:45:10.419Z","dependency_job_id":null,"html_url":"https://github.com/ichizok/vim-perf","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/ichizok%2Fvim-perf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichizok%2Fvim-perf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichizok%2Fvim-perf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichizok%2Fvim-perf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ichizok","download_url":"https://codeload.github.com/ichizok/vim-perf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248327753,"owners_count":21085257,"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":["vim"],"created_at":"2024-10-13T10:23:21.805Z","updated_at":"2025-04-11T01:43:50.844Z","avatar_url":"https://github.com/ichizok.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vim performance profiler, powered by gperftools\n\nYou can use gperftools via Vim script in order to profile Vim.\n\n## Requirements\n\n* [gperftools](https://github.com/gperftools/gperftools)\n* Vim; built with `WE_ARE_PROFILING` macro\n\n## Build Vim\n\nSet `-DWE_ARE_PROFILING` to `CPPFLAGS`.\n\n```\n$ cd /path/to/vim\n$ export CPPFLAGS=-DWE_ARE_PROFILING\n$ ./configure --with-features=huge ...\n$ make\n```\n\n## Build vim-perf library\n\n```\n$ cd /path/to/vim-perf\n$ make\n```\n\n## Usage\n\n```vim\nset rtp+=/path/to/vim-perf\n\n\" load vim-perf library \ncall vimperf#setup()\n\n\" start cpu profiling\ncall vimperf#start(\"/path/to/result.out\")\n\n\" or heap profiling\ncall vimperf#start(\"/path/to/result\", \"heap\")\n\n\" ... profiling area ...\n\n\" stop profiling\ncall vimperf#stop()\n\n\" unload vim-perf library\ncall vimperf#finish()\n```\n\n**NOTE** If you'd like to use heap profiler, you have to link libtcmalloc to Vim before starting.\n\nLinux: `LD_PRELOAD`\n\n```\n$ LD_PRELOAD=/path/to/libtcmalloc.so vim ...\n```\n\nmacOS: `DYLD_INSERT_LIBRARIES`\n\n```\n$ DYLD_INSERT_LIBRARIES=/path/to/libtcmalloc.dylib vim ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichizok%2Fvim-perf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichizok%2Fvim-perf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichizok%2Fvim-perf/lists"}