src: notify V8 profiler when we're idle
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 2 Oct 2013 04:37:44 +0000 (06:37 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 3 Oct 2013 14:50:54 +0000 (16:50 +0200)
commit57231d5286b036f3277e778eca5c4501c99b9ce0
tree580d677b775627060ecec96576bd936dc76b7cea
parent6820054d2d42ff9274ea0755bea59cfc4f26f353
src: notify V8 profiler when we're idle

Inform V8's CPU profiler when we're idle.  The profiler is
sampling-based but not all samples are created equal; mark the wall
clock time spent in epoll_wait() and friends so profiling tools can
filter it out.  The samples still end up in v8.log but with state=IDLE
rather than state=EXTERNAL.
src/env-inl.h
src/env.h
src/node.cc