Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artemnovichkov/xcode-timing
CLI tool and scripts for collecting Xcode build times
https://github.com/artemnovichkov/xcode-timing
macos swift xcode
Last synced: 2 months ago
JSON representation
CLI tool and scripts for collecting Xcode build times
- Host: GitHub
- URL: https://github.com/artemnovichkov/xcode-timing
- Owner: artemnovichkov
- License: mit
- Created: 2023-03-12T10:48:48.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T15:01:47.000Z (almost 2 years ago)
- Last Synced: 2024-05-21T08:30:20.145Z (7 months ago)
- Topics: macos, swift, xcode
- Language: Swift
- Homepage:
- Size: 1.33 MB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xcode-timing
A CLI tool for collecting Xcode build statistics.
## Installation
1. Clone the repo.
2. Install the tool:```bash
$ make install
```
3. Edit behaviors via Xcode -> Behaviors -> Edit Behaviors...- Add start.sh script to Starts
- Add end.sh script to Succeeds and Fails
## Usage
By default, all statistics are saved in Documents/xcode-times.json.
```json
[
{
"totalBuilds" : 64,
"project" : "MyProject.xcworkspace",
"totalBuildTime" : 1825.0506573915482,
"lastStartDate" : 676459449.23457396,
"date" : 676380482.42901003
}
]
```You can run `xcode-timing show` to see all statistics:
```bash
+------------+-----------------------+------------------+--------------------+
| Date | Project Name | Total Build Time | Average Build Time |
+------------+-----------------------+------------------+--------------------+
| 08.06.2022 | MyProject.xcworkspace | 30m 25s | 28s |
| 09.06.2022 | MyProject.xcworkspace | 21m 45s | 37s |
+------------+-----------------------+------------------+--------------------+
```Or you can use `xcode-timing show -n MyProject.xcworkspace` to see statistics for selected project:
```bash
+------------------------------------------------------+
| Build statistics for MyProject.xcworkspace (08.06.2022-09.06.2022) |
+------------------------------------------------------+
| Total Builds | Total Build Time | Average Build Time |
+--------------+------------------+--------------------+
| 99 | 52m 10s | 31s |
+--------------+------------------+--------------------+
```