{"id":21339062,"url":"https://github.com/capsadmin/zbprofiler","last_synced_at":"2025-10-04T20:03:36.715Z","repository":{"id":150429815,"uuid":"39129891","full_name":"CapsAdmin/zbprofiler","owner":"CapsAdmin","description":"proof of concept luajit profiler visualization for zerobrane","archived":false,"fork":false,"pushed_at":"2016-06-25T11:54:30.000Z","size":9,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-12T14:45:26.513Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CapsAdmin.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":"2015-07-15T10:06:10.000Z","updated_at":"2023-07-07T05:57:15.000Z","dependencies_parsed_at":"2023-04-24T17:28:03.884Z","dependency_job_id":null,"html_url":"https://github.com/CapsAdmin/zbprofiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CapsAdmin/zbprofiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CapsAdmin%2Fzbprofiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CapsAdmin%2Fzbprofiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CapsAdmin%2Fzbprofiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CapsAdmin%2Fzbprofiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CapsAdmin","download_url":"https://codeload.github.com/CapsAdmin/zbprofiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CapsAdmin%2Fzbprofiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278366664,"owners_count":25975095,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":[],"created_at":"2024-11-22T00:42:02.903Z","updated_at":"2025-10-04T20:03:36.709Z","avatar_url":"https://github.com/CapsAdmin.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"This will highlight areas of your code where the CPU has spent most of its time in varying amounts of red and annotate why certain areas of the code could not be jit compiled after the profiler has been run for a little while. Restart zerobrane to refresh the results.\r\n\r\n![ScreenShot](https://drive.google.com/uc?export=download\u0026id=0B4QDw71zow0ZWm5sbHJPMUFybkE)\r\n\r\n#install:\r\n1. download the latest version of zerobrane https://github.com/pkulchenko/ZeroBraneStudio/archive/master.zip\r\n1. luajit-msgpack-pure.lua \u003e ZeroBraneStudio/lualibs/luajit-msgpack-pure.lua\r\n2. zb_profile_plugin.lua \u003e ZeroBraneStudio/packages/zb_profile_plugin.lua\r\n\t\t\t\r\n#install for use with löve:\r\nnote: löve/love.exe should exist\r\n\r\n1. luajit-msgpack-pure.lua \u003e löve/luajit-msgpack-pure.lua\r\n2. zbprofiler.lua \u003e löve/zbprofiler.lua\r\n3. place your löve project in löve/mygame/\r\n4. modify your löve project:\r\n\r\n```\r\nlocal profiler = require(\"zbprofiler\")\r\n\r\nfunction love.load()\r\n\tprofiler.start()\r\nend\r\n\r\nfunction love.update() \r\n\tprofiler.save(3)\r\nend\r\n```\r\n\r\n5. in zerobrane set your project directory to löve/ \r\n6. modify zb_profile_plugin.lua\r\n```\r\n6: str = ide.config.path.projectdir .. \"/\" .. str\r\n\u003e\r\n6: str = ide.config.path.projectdir .. \"/mygame/\" .. str\r\n```\r\n\t\r\n#install for use with zerobrane:\r\n1. luajit-msgpack-pure.lua \u003e ZeroBraneStudio/lualibs/luajit-msgpack-pure.lua\r\n2. zbprofiler.lua \u003e ZeroBraneStudio/lualibs/zbprofiler.lua\r\n4. zb_profile_test_plugin.lua \u003e ZeroBraneStudio/packages/zb_profile_test_plugin.lua\r\n5. compile luajit 2.1\r\n6. luajit/src/lua51.dll \u003e ZeroBraneStudio/bin/lua51.dll\r\n7. luajit/src/jit/* \u003e  ZeroBraneStudio/lualibs/jit/*\r\n\r\n#issues and todo\r\n- It's kinda clumsy to install. \r\n- I use markers to add the red lines which is a very ugly way to do it (but I can't find any other way to do it). Scintillia is limited to around 20 markers too.\r\n- maybe add more annottion info and or tooltips to view the assembly of the compiled code\r\n- show percent in the margin somehow\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapsadmin%2Fzbprofiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapsadmin%2Fzbprofiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapsadmin%2Fzbprofiler/lists"}