GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — V8's CpuProfiler uses busy wait on Windows. · Issue #170 · nodejs/diagnostics

V8's CpuProfiler uses busy wait on Windows. #170

New issue
Copy link
New issue
Copy link
Closed
Closed
V8's CpuProfiler uses busy wait on Windows.#170
Copy link

Description

@hashseed
hashseed
opened on Feb 22, 2018
Issue body actions

The reason for that is described in this comment:

// Do not use Sleep on Windows as it is very imprecise.
// Could be up to 16ms jitter, which is unacceptable for the purpose.

This in turn is not acceptable for some APM vendors who run the CpuProfiler in production. For sampling intervals significantly larger than 16ms we should be fine with using Sleep though.

@Hollerberg

Reacted by Gerhard Stöbich, Alexey Alexandrov and Daniel Khan

Activity

  1. hashseed commented on Feb 22, 2018

    @hashseed
    hashseed
    on Feb 22, 2018
    MemberAuthor
    More actions

    Upstream fix is in flight: https://chromium-review.googlesource.com/c/v8/v8/+/931102

    Reacted by F. Hinkelmann and Daniel Khan
    Reacted by Daniel Khan
  2. hashseed commented on Feb 22, 2018

    @hashseed
    hashseed
    on Feb 22, 2018
    MemberAuthor
    More actions

    @Flarna @Hollerberg feel free to have this cherry-picked onto Node.js. I don't think we will backmerge this change in V8 upstream.

  3. kisg
    added a commit that references this issue on Feb 22, 2018

    [profiler] use Sleep() on windows for long profile intervals.

    15c0c3a
  4. Flarna commented on Feb 28, 2018

    @Flarna
    Flarna
    on Feb 28, 2018
    Member
    More actions

    @hashseed Thanks for the change!
    But I think there is an else missing in current code. Now there is no wait at all for long intervals...

  5. MylesBorins
    added a commit that references this issue on Mar 20, 2018

    deps: v8: cherry-pick fixes for v8:7535

    5966b8c
  6. Flarna commented on Jul 9, 2019

    @Flarna
    Flarna
    on Jul 9, 2019
    Member
    More actions

    Will close this as this is included in NodeJS 10 onwards.

  7. Flarna
    closed this as completedon Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.