This is the tool that allows to track events that are happening in Xcode This tool simply runs tracking scripts based on Xcode behaviors. It's independent on the Xcode version (as soon as you have Xcode version higher than 4 :) It will survive Xcode reinstallations, so it works on 'install and forget basis'
The result of this tool will be one simple csv file looking like this
#ProjectName, Workspace, TimeStart, TimeEnd, Event, TimeSpent
No project,TimeTracker.xcworkspace,1497876725,1497876729,Build Succeeded,4
No project,TimeTracker.xcworkspace,1497876729,1497877067,Run Completed,338
No project,TimeTracker.xcworkspace,1497877067,1497877088,Build Succeeded,21
There'are two installation steps:
- Place scripts to
~/.timecheck
directory - Setup Xcode behaviours to run those scripts on every run
Simply run
CURRENT=`pwd`
cd `mktemp -d`
git clone https://github.com/PaulTaykalo/xcode-time-tracker
cd xcode-time-tracker
sh ./install.sh
cd ..
rm -rf xcode-time-tracker
cd $CURRENT
This will download and copy project_start.py
and project_end.py
to the ~/.timecheck
directory
- Edit Xcode Behaviors
- Set project_start.py script as custom script for start behaviors
- Set project_end.py script as custom script for end behaviors
There are no more steps. Done.
Build your precious project and see that there's new file appeared in ~/.timecheck
directory
It should contain line that should look like this
No project,HeyYouAreAwesome.xcworkspace,1597876725,1597876729,Build Succeeded,4
The next step is to visualize this information. I used R language for that. But there's more coming This how it can look like if you'll be able to setup R correcly :)