This probably isn't for merging, and it's an incomplete WIP, but I thought I'd put it here anyway. I wanted a half-decent way to measure where time is being spent, to see if anything is an obvious performance bottleneck. But it's crude, and the code is a bit crufty.
Some of these events are nested (e.g. parseTime is wholly contained by analyse - there are basically two phases, analyse and build). Time spend waiting for files to be read is currently ignored.
This probably isn't for merging, and it's an incomplete WIP, but I thought I'd put it here anyway. I wanted a half-decent way to measure where time is being spent, to see if anything is an obvious performance bottleneck. But it's crude, and the code is a bit crufty.
Anyway, some results from running
npm test
:Some of these events are nested (e.g.
parseTime
is wholly contained byanalyse
- there are basically two phases,analyse
andbuild
). Time spend waiting for files to be read is currently ignored.