🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

rake-timer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rake-timer

0.0.3
Rubygems
Version published
Maintainers
1
Created
Source

RakeTimer

Times how long each Rake task takes. If your Rake build starts to get too long, it can be useful to quickly see how long each task is taking. It can also be useful to track Tasks over time.

Usage

In your Rakefile, add:

require 'rake-timer'
time_tasks

Output

By default, time stats are written to the console. Optionally, you can write (append) to a CSV file (in reports/rake-timer.csv), which can easily be read by a charting library such as Highcharts.

Even more optionally, you can output results to the very nice statsd. Each task gets its own time-based set of graphs, so you can see how your build time is affected over, well time.

A full set of configuration options would be:

time_tasks :to => [:csv, :statsd], :unit => :milliseconds, :host => 'localhost', :port => 8125

Host and port are the statsd daemon you prepared earlier.

Installation

RakeTimer is packaged as a Gem. Install with:

gem install rake-timer

Copyright (c) 2011 Peter Moran. See LICENSE for details.

FAQs

Package last updated on 21 Feb 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts