{"id":13991805,"url":"https://github.com/PaulTaykalo/xcode-build-times-rendering","last_synced_at":"2025-07-22T14:32:15.042Z","repository":{"id":33133393,"uuid":"149499595","full_name":"PaulTaykalo/xcode-build-times-rendering","owner":"PaulTaykalo","description":"Xcode build times visualization per target","archived":false,"fork":false,"pushed_at":"2021-04-28T15:38:26.000Z","size":71,"stargazers_count":334,"open_issues_count":8,"forks_count":22,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-20T10:56:41.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/PaulTaykalo.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":"2018-09-19T19:10:09.000Z","updated_at":"2024-09-23T02:25:02.000Z","dependencies_parsed_at":"2022-08-07T20:00:56.352Z","dependency_job_id":null,"html_url":"https://github.com/PaulTaykalo/xcode-build-times-rendering","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/PaulTaykalo%2Fxcode-build-times-rendering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulTaykalo%2Fxcode-build-times-rendering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulTaykalo%2Fxcode-build-times-rendering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulTaykalo%2Fxcode-build-times-rendering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaulTaykalo","download_url":"https://codeload.github.com/PaulTaykalo/xcode-build-times-rendering/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227123995,"owners_count":17734238,"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-09T14:01:36.261Z","updated_at":"2024-11-29T12:30:47.313Z","avatar_url":"https://github.com/PaulTaykalo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# xcode-build-times-rendering\n\nXcode build times visualization per target\n![image](https://user-images.githubusercontent.com/119268/45782819-abd2aa00-bc6c-11e8-9ee0-114c020f238a.png)\n\n## Installation\n\n```sh\n[sudo] gem install xcode-build-times\n```\n\n## Injection in your project\n\nIn order to gather target build times, run the following command. This will add script build phases named \"Timing START\" and \"Timing END\" for **EACH** target in **EACH** project at specified path.\n\n```sh\nxcode-build-times install ~/Projects/\u003cMy_slowly_building_project\u003e/\n```\n\n![image](https://user-images.githubusercontent.com/119268/45782420-898c5c80-bc6b-11e8-9200-d54dbc5ea56f.png)\n\n## Events file\n\nOnce you've run the `install` command above, all build events will be saved to `~/.timings.xcode` file every time you build your project.  \n**NOTE**: You can override this default setting by passing `--events-file` parameter on installation script\n\n```json\n...\n{\"date\":\"2018-09-19T22:52:04.1537386724\", \"taskName\":\"A\", \"event\":\"start\"},\n{\"date\":\"2018-09-19T22:53:01.1537386781\", \"taskName\":\"A\", \"event\":\"end\"},\n{\"date\":\"2018-09-19T22:53:04.1537386784\", \"taskName\":\"B\", \"event\":\"start\"},\n{\"date\":\"2018-09-19T22:55:53.1537386953\", \"taskName\":\"V\", \"event\":\"end\"},\n...\n```\n\n## Generating Visualization Events\n\nOnce desired build is done, it's time to dump raw events in place we need in order to render them.\nThis can be done by running:\n\n```sh\nxcode-build-times generate [--events-file \u003cpath\u003e]\n```\n\n**NOTE**: You can use a different timings file by passing `--events-file` parameter\n\n## Open gantt.html\n\nIt's time to see results. Just open **xcode-build-times-chart/gantt.html**.\n\n## Uninstallation\n\nOnce you are done benchmarking your project and want to remove the \"Timing START' / \"Timing END\" build phases from your projects, just run:\n\n```sh\nxcode-build-times uninstall ~/Projects/\u003cMy_slowly_building_project\u003e/\n```\n\n(You can also delete your events file and the `xcode-build-times-chart/` containing your reports)\n\n---\n\n# Libraries and Kudos\n\n[d3js](https://d3js.org/) - JavaScript library for manipulating documents based on data  \n[xcodeproj](https://github.com/CocoaPods/Xcodeproj) - Create and modify Xcode projects from Ruby.  \n[d3js-gantt](https://github.com/dk8996/Gantt-Chart) - Gantt chart for d3js by [@dk8996](https://github.com/dk8996)\n\n# P.S.\n\nIf something doesn't work - please [fix it](https://github.com/PaulTaykalo/xcode-build-times-rendering/pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaulTaykalo%2Fxcode-build-times-rendering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPaulTaykalo%2Fxcode-build-times-rendering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaulTaykalo%2Fxcode-build-times-rendering/lists"}