Skip to content

when run node with --prof the crypto.pbkdf2 will not loged in #8439

Description

@chaosforfun

Version 6.5.0
Platform: ubuntu 64-bit

i have a process which invoke crypto.pbkdf2 to encrypt password. and it will let the cpu 390%.so i use
node --prof and node --prof-process to profile, but in the log file ,crypto.pbkdf2 did not take up lot cpu time.

if I small the iterations param of crpto.pbkdf2 ,this process will not take up log cpu time, and if i set bigger iterations it will take up a lot cpu time.so i am sure this function take a log cpu time, but why it did non show in the log of node --prof.

  • Version:
  • Platform:
  • Subsystem:

Activity

  1. added
    questionIssues asking questions about Node.js.
    v8 engineIssues and PRs related to the V8 dependency.
    performanceIssues and PRs related to the performance of Node.js.
    on Sep 8, 2016
  2. Fishrock123 commented on Sep 8, 2016

    @Fishrock123
    Contributor

    @chaosforfun can you post some of your code and a processed profile? (output from --prof-process)

  3. bnoordhuis commented on Sep 8, 2016

    @bnoordhuis
    Member

    Not a bug. The profiler only profiles the main thread (the thread executing JS). The asynchronous version of crypto.pbkdf2() runs in the thread pool and hence doesn't show up in the profiler. You won't see crypto.randomBytes() or any of the zlib functions for the same reason.

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

    performanceIssues and PRs related to the performance of Node.js.questionIssues asking questions about Node.js.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions