-
Notifications
You must be signed in to change notification settings - Fork 1.4k
auto start the CPU profiler #491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
require('./lib/test-worker'); | ||
console.profile('AVA test-worker process'); | ||
|
||
setTimeout(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? And setImmediate
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The profiler seemed to startup async.
9a61778
to
5535327
Compare
// @mattdesl |
Not sure why there would be a difference. You could try --no-node-timers to see if that is the reason setImmediate was needed. |
I've cloned devtool node_modules/ava/profile.js <test-file> Are there specific files to use for |
You can link it, or use a fixture
|
Pulled from master. Testing with [email protected], node@5 and [email protected], adding the |
It doesn't log the "profiling started" line - I think that may be the only issue. But it makes me paranoid that I might be missing some profiling data |
@jamestalmage Can you open an issue on |
auto start the CPU profiler
This will automatically start the DevTools profiler when running
profile.js