Giter Club home page Giter Club logo

xcode-time-tracker's Introduction

Xcode Time Tracker

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'

Raw output example

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

Installation

There'are two installation steps:

  1. Place scripts to ~/.timecheck directory
  2. Setup Xcode behaviours to run those scripts on every run

Scripts installation

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

Xcode Behaviours setup

  1. Edit Xcode Behaviors
    Behaviors
  2. Set project_start.py script as custom script for start behaviors
    Start Behaviors
  3. Set project_end.py script as custom script for end behaviors
    End Behaviors

Next step

There are no more steps. Done.

Check Installation

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

Visualization

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 :) Visualization

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.