node.js - Profile a gulp build with spy-js -
node.js - Profile a gulp build with spy-js -
from 1 of comment in webstorm blog article, says 1 can debug grunt programme creating script file , invoke grunt. have gulp
setup profile. so, created script file
var gulp = require('gulp'); require('./gulpfile'); gulp.start.apply(gulp, ['default'])
when run spy-js
run session, executes , ton of trace info. traced application
window shows ran correctly see logs. but, cannot find of methods in trace run
window. should say, function called gulpfile.js
? tried quick search clicking on middle window , start typing. cannot find of method.
another qn, how go next nail in quick search
window. in attached image, nail 1 result, want go next. how?
the best way utilize capture exclusions rid of noise files you're not interested in.
on screenshot above, single file filter applied (meaning nil file captured), after applying such filter , restarting session see code gulpfile.js. can utilize glob patterns include/exclude files need. suspect in scenario excluding node modules should enough. there's shortcut create such filter, right click on root node within events pane , select "mute node modules":
if you're interested in tracing of node modules, can modify filter exclude you're not interested in. can create filters individual node modules locating 1 of functions in stack tree , using "mute node module" context action.
node.js webstorm
Comments
Post a Comment