fs-monitor-stack

a stack based FS monitor

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
fs-monitor-stack
121.1.17 years ago7 years agoMinified + gzip package size for fs-monitor-stack in KB

Readme

fs-monitor-stack
Example (for broccoli')
this.builder = new broccoli.Builder(this.tree);

var builder = this;

this.builder.on('start', function(node) {
  builder.monitor = new FSMonitor();
});

this.builder.on('nodeStart', function(node) {
  var metric = new NodeMetric(node);
  builder.monitor.push(metric);
});

this.builder.on('nodeEnd', function(node) {
  builder.monitor.pop();
});

this.builder.on('end', function(node) {
  console.log('endBuild');
  console.log(builder.monitor.totalStats());
});