Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8769079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:14:26+00:00 2026-06-13T17:14:26+00:00

I am looking for a method to do precise Node.JS profiling of script execution

  • 0

I am looking for a method to do precise Node.JS profiling of script execution times on Linux.

There are interesting projects like the NodeTime.com Performance Profiler, but this profiles the timing of I/O httprequests and such, not execution time of lines of code.

I am looking for a way to figure out exactly where I can optimize my Javascript, where most of the time is spent, etc.


One interesting method I’ve seen is trying to create a FlameGraph using DTrace to profile Node.JS.

However, dtrace is very Solaris-specific.

  • For Linux (Debian/Ubuntu), dtrace can be found in the sytemtap-sdt-dev package. However, stap dtrace is not the same, and lacks all relevant hooks/probes.
  • Paul Fox made a port from the Unix version. It’s more feature complete but somehow the hooks/probes don’t work in userspace as the Solaris one, and also cannot be used to profile node.
    ftp://crisp.dyndns-server.com/pub/release/website/dtrace/ (It’s pretty easy to build, see README.)
  • There’s also an Oracle port, but noone would recommend it. Apparently, it only has about 0,1 percent of the probes the Paul Fox port. (Which is ironic, because Oracle was formerly Sun, original authors of dtrace for Solaris)

How, in Linux, using the terminal or using Eclipse, can I profile the code of my Node.JS scripts? I’m looking for something specific like the Zend Profiler shows execution times of each command in code of PHP scripts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:14:27+00:00Added an answer on June 13, 2026 at 5:14 pm

    If you’re not against using nodetime, it actually does have CPU profiling:

    See: http://nodetime.com/blog/cpu-profiling-with-nodetime

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a method like: myMap.containsKeyStartingWith(abc); // returns true if there's a key
I'm looking for a method of turning a NSMutableArray into a string. Is there
I am looking for method for parsing route path like this: ActionController::Routing.new(post_path).parse #=> {:controller
I Looking for a method that convert time string into Calendar look like this:
Often when looking at method calls with many parameters, I'd like to know what
I am playing with scipy source code, there . I am looking to method
I'm looking for a method to check from within my shell script that script
I’m looking for method that will return string representation of byte data just like
I'm looking for method to add gradually fading or maybe blured border (I don't
I am looking into a method to convert a byte array to a hexadecimal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.