Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanpenner/fs-monitor-stack


https://github.com/stefanpenner/fs-monitor-stack

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# fs-monitor-stack

Example (for broccoli')

```js
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());
});
```