{"id":13526032,"url":"https://github.com/Polynominal/Piefiller","last_synced_at":"2025-04-01T06:30:57.032Z","repository":{"id":41072291,"uuid":"45733404","full_name":"Polynominal/Piefiller","owner":"Polynominal","description":"Graphical profiler for Love2D 9.2","archived":false,"fork":false,"pushed_at":"2017-08-01T08:43:09.000Z","size":10,"stargazers_count":23,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-02T10:34:08.438Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Polynominal.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-11-07T11:18:57.000Z","updated_at":"2024-06-19T13:30:07.000Z","dependencies_parsed_at":"2022-09-01T13:12:04.839Z","dependency_job_id":null,"html_url":"https://github.com/Polynominal/Piefiller","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/Polynominal%2FPiefiller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polynominal%2FPiefiller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polynominal%2FPiefiller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polynominal%2FPiefiller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polynominal","download_url":"https://codeload.github.com/Polynominal/Piefiller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246596654,"owners_count":20802864,"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-01T06:01:24.525Z","updated_at":"2025-04-01T06:30:56.576Z","avatar_url":"https://github.com/Polynominal.png","language":"Lua","funding_links":[],"categories":["Performance"],"sub_categories":[],"readme":"# Piefiller\nGraphical profiler for Love2D 0.10.2\n# Usage\n1) require the file:\n```lua\n  piefiller = require(\"piefiller\")\n```\n2) make a new instance of piefiller\n```lua\n  Pie = piefiller:new()\n```\n3) attach the piefiller to the part of your application that you want to monitor, it can be whatever but I suggest calling it in love.update or love.draw as this is what piefiller is all about.\n\n```lua\n function love.update()\n\tPie:attach()\n\t\t-- do something\n\tPie:detach()\n end\n```\n4) draw the output in your draw function and give event hooks for your pie.\n```lua\n function love.draw()\n\tPie:draw()\n end\n function love.keypressed(...)\n \tPie:keypressed(...)\n end\n function love.mousepressed(...)\n \tPie:mousepressed(...)\n end\n```\n5) When you get sufficient output press the \"P\" key to output to file.\n# Keys\nr \t= resets the pie \n\nup \t= decreases depth \n\ndown \t= increases depth \n\n, \t= decreases step size \n\n.\t= increases step size \n\ns\t= shortens the names displayed\n\nc\t= hides/shows hidden processes\n\np\t= saves to file called \"Profile\" and opens directory for you\n## To redefine these:\nModes available:\n```lua\nreset\nincrease_depth\ndecrease_depth\nincrease_step_size\ndecrease_step_size\nshorten_names\nshow_hidden\nsave_to_file\n```\nTo redefine only one of the keys:\n\n```lua\npiefiller:setKey(mode,key)\n```\n\nexample:\n\n```lua\npiefiller:setKey(\"increase_depth\",\"up\")\n```\nTo redefine all of the keys:\n```lua\n\t\ntable = {\n\t\"increase_depth\" = \"up\"\n}\npiefiller:setKey(table)\n\t\n```\n# For your own interpretation \n\tIf you wish to interpret the data on your own use piefiller:unpack().\n\tOutput is a table as such:\n\t\n```lua\n\tdata = {\n\t\titems = { \n\t\t\t{ \n\t\t\t\tname,\n\t\t\t\tline_defined, \n\t\t\t\tcurrent_line,\n\t\t\t\tsource,\n\t\t\t\ttime_taken, \n\t\t\t\tpercentage,\n\t\t\t\tcaller,\n\t\t\t}\n\t\t}, \n\t\tabout = {\n\t\t\tdepth,\n\t\t\tstep, \n\t\t\ttotalTime,\n\t\t}, \n\t} \n```\n\t\n# Additional notes\nThe best depth to search for is 2 and 3.\n\nWhen used in large applications the output is difficult to read, however printing to file resolves this issue.\n# Planned features\nMake sure that text does not overlay.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPolynominal%2FPiefiller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPolynominal%2FPiefiller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPolynominal%2FPiefiller/lists"}