https://github.com/stefanpenner/fs-monitor-stack
https://github.com/stefanpenner/fs-monitor-stack
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stefanpenner/fs-monitor-stack
- Owner: stefanpenner
- Created: 2015-09-01T15:59:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T03:48:09.000Z (almost 9 years ago)
- Last Synced: 2024-12-26T03:32:07.378Z (7 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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());
});
```