[Grunt & Yeoman] time-grunt で Task の実行時間を計測する

プラグインのロード時間を計測したくなって見つけました。

[markdown]
> * [sindresorhus/time-grunt](https://github.com/sindresorhus/time-grunt)

## インストール

“`prettyprinted
% npm install –save time-grunt
“`

## Gruntfile

`grunt.initConfig` の前に、下記を追加する。

Gruntfile.coffee

“`
require(“time-grunt”)(grunt)
“`

## つかいかた

タスク実行時に、下記のような計測結果が表示される。

“`prettyprinted
Execution Time (2014-01-09 04:55:46 UTC)
loading tasks 20.1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 70%
ejs:dev 823ms ▇▇ 3%
compass:dev 691ms ▇▇ 2%
styleguide:prod 2.3s ▇▇▇▇ 8%
yuidoc:prod 1.3s ▇▇▇ 5%
uglify:prod 2.5s ▇▇▇▇ 9%
imagemin:prod 330ms ▇ 1%
Total 28.5s
“`
[/markdown]