Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanpenner/fs-monitor-stack
https://github.com/stefanpenner/fs-monitor-stack
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stefanpenner/fs-monitor-stack
- Owner: stefanpenner
- Created: 2015-09-01T15:59:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T03:48:09.000Z (over 8 years ago)
- Last Synced: 2024-10-17T18:13:01.897Z (19 days 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());
});
```