{"id":13792600,"url":"https://github.com/tarantool/gperftools","last_synced_at":"2025-04-14T15:10:53.404Z","repository":{"id":33880728,"uuid":"37591372","full_name":"tarantool/gperftools","owner":"tarantool","description":"Lua bindings for Google Performance Tools CPU Profiler","archived":false,"fork":false,"pushed_at":"2021-11-08T06:27:07.000Z","size":13,"stargazers_count":16,"open_issues_count":2,"forks_count":1,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-03-28T04:03:18.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarantool.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}},"created_at":"2015-06-17T11:39:03.000Z","updated_at":"2024-11-15T22:59:48.000Z","dependencies_parsed_at":"2022-09-12T17:31:37.768Z","dependency_job_id":null,"html_url":"https://github.com/tarantool/gperftools","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fgperftools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fgperftools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fgperftools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fgperftools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarantool","download_url":"https://codeload.github.com/tarantool/gperftools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248904640,"owners_count":21180835,"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-08-03T22:01:14.192Z","updated_at":"2025-04-14T15:10:53.376Z","avatar_url":"https://github.com/tarantool.png","language":"Lua","readme":"# gperftools - Lua bindings for Google Performance Tools CPU Profiler\n[![Build Status](https://travis-ci.org/tarantool/gperftools.png?branch=master)](https://travis-ci.org/tarantool/gperftools)\n\n## Getting Started\n\n### Prerequisites\n\n * Tarantool 1.5+ or LuaJIT 2.0+\n * libprofiler.so from gperftools package\n   - apt-get install libgoogle-perftools4 # Debian/Ubuntu, main repository\n   - yum install gperftools-libs # RHEL/CentOS/Fedora, EPEL repository\n\n### Installation\n\nUse package for your distribution from http://tarantool.org/ repository.\nYou can also use LuaRocks:\n\n``` bash\nluarocks install https://raw.githubusercontent.com/tarantool/gperftools/master/gperftools-scm-1.rockspec --local\n```\n\nSee [tarantool/rocks][TarantoolRocks] for LuaRocks configuration details.\n\n### Usage\n\nStart profiler:\n\n    tarantool\u003e cpuprof = require('gperftools.cpu')\n    tarantool\u003e cpuprof.start('/home/roman/tarantool-on-production.prof')\n\nWait some time to get performance metricrs to be collected\n(at least couple minutes).\n\nFlush actual results to disk (you can do that multiple times):\n\n    tarantool\u003e cpuprof.flush()\n\nAnalize the output (see [documentation][gperftools]):\n\n    pprof --text /usr/bin/tarantool /home/roman/tarantool-on-production.prof\n\nStop profiling when you don’t need it anymore:\n\n    tarantool\u003e cpuprof.stop()\n\n## See Also\n\n * [CPU Profiler Documentation][gperftools]\n * [Tarantool][]\n * [Tarantool Rocks][TarantoolRocks]\n\n[gperftools]: https://gperftools.github.io/gperftools/cpuprofile.html\n[Tarantool]: http://github.com/tarantool/tarantool\n[TarantoolRocks]: https://github.com/tarantool/rocks\n","funding_links":[],"categories":["Packages"],"sub_categories":["Profilers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool%2Fgperftools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarantool%2Fgperftools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool%2Fgperftools/lists"}