Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: fe2019699add
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 6ebd85e10535
Choose a head ref
  • 1 commit
  • 7 files changed
  • 1 contributor

Commits on Jan 13, 2015

  1. v8: don't busy loop in cpu profiler thread

    Reduce the overhead of the CPU profiler by replacing sched_yield() with
    nanosleep() in V8's tick event processor thread.  The former only yields
    the CPU when there is another process scheduled on the same CPU.
    
    Before this commit, the thread would effectively busy loop and consume
    100% CPU time.  By forcing a one nanosecond sleep period rounded up to
    the task scheduler's granularity (about 50 us on Linux), CPU usage for
    the processor thread now hovers around 10-20% for a busy application.
    
    PR-URL: #8789
    Ref: strongloop/strong-agent#3
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
    bnoordhuis authored and trevnorris committed Jan 13, 2015
    Copy the full SHA
    6ebd85e View commit details
    Browse the repository at this point in the history