Node.js --prof
nodejs.org
- Free plan
- Windows
- macOS
- Linux
- Self-hosted
What Node.js --prof is
Node.js --prof is a free command-line option for generating V8 profiler output from Node.js programs. The related `--prof-process` option processes output generated by `--prof`. The listed profiling mode is sampling, with CPU profiling for JavaScript and C++. Node.js is an asynchronous, event-driven JavaScript runtime designed for scalable network applications. It runs an input script before entering its event loop, then exits the loop when no callbacks remain. HTTP is treated as a first-class part of its networking model, with streaming and low latency in mind. The `child_process.fork()` API and `cluster` module can support work across multiple cores. Node.js is available for Linux, macOS, and Windows, with desktop listed as its deployment model. The project advises using official sources and avoiding unofficial binaries or downloads. Its download page offers Current, LTS, and EOL releases, along with nightly binaries and previous releases. A signed source tarball and instructions for verifying signed SHASUMS are also available.
Who it suits
This option suits JavaScript and C++ developers who need sampling-based CPU profiling in Node.js. It is relevant to users working on Linux, macOS, or Windows.
Good to know, and what to watch
- Free to use
- Generates V8 profiler output
- Sampling-based CPU profiling for JavaScript and C++
- Works on Linux, macOS, and Windows
- Focused on sampling-based CPU profiling
- Requires processing profiler output with a separate CLI option
Plans
Every plan and priceNode.js --prof
Free plan
Getting started
- Open the Node.js CLI documentation
- Install Node.js from an official source
- Run Node.js with the --prof option to generate V8 profiler output
- Use --prof-process to process the generated output
- Verify signed SHASUMS when using the signed source tarball
Limits to check
The free plan provides sampling-based CPU profiling. The listed support covers JavaScript and C++, and the deployment model is desktop.
The verdict
Node.js --prof offers a focused way to generate sampling profiler output, with `--prof-process` for processing it. Its usefulness depends on whether sampling fits the CPU profiling task.
Questions people ask
Is Node.js --prof free?
Yes. It has a Free plan listed as free.
What does --prof do?
The `--prof` option generates V8 profiler output. The `--prof-process` option processes output generated with `--prof`.
Which languages can it profile?
The listed supported languages are JavaScript and C++, with CPU profiling provided.
Which platforms are supported?
Platforms listed are Linux, macOS, self-hosted, and Windows.
How should Node.js downloads be obtained?
Node.js advises using official sources and avoiding unofficial binaries or downloads. Its download page also offers a signed source tarball and SHASUMS verification instructions.
What the maker publishes
- Foundation mission
- The OpenJS Foundation says it works to make the web safe and modern and to support JavaScript projects and collaboration. source
- Maintainer
- The download page identifies the OpenJS Foundation and Node.js contributors in its copyright notice. source
- Multi-core use
- The `child_process.fork()` API and `cluster` module can support work across multiple cores. source
- Networking
- Node.js describes HTTP as a first-class citizen designed with streaming and low latency in mind. source
- Official sources
- Node.js advises using official sources and says to avoid trusting unofficial binaries or downloads. source
- Process output
- The `--prof-process` option processes profiler output generated using V8's `--prof` option. source
- Profiler output
- The `--prof` CLI option generates V8 profiler output. source
- Purpose
- Node.js is an asynchronous event-driven JavaScript runtime designed to build scalable network applications. source
- Release channels
- The download page lists Current, LTS, and EOL release versions, as well as nightly binaries and previous releases. source
- Runtime model
- Node.js enters the event loop after executing the input script and exits it when no callbacks remain. source
- Security reporting
- Node.js security bugs can be reported through HackerOne, and the project says it no longer has a bug bounty program. source
- Security response
- The security page says reports are normally acknowledged within 5 days, with a more detailed response within 10 days. source
- Signed downloads
- The download page offers a signed Node.js source tarball and links to instructions for verifying signed SHASUMS. source
Checked against the maker's pages on 8 Oct 2026.