The Atatus Node.js profiler helps you in troubleshooting your Node.js application problems and also identifies performance issues before they become apparent to your users. It continuously captures function call stacks and resource usage in production to determine which part of your Node.js application is slower or consuming excess CPU and memory.

Installation & Setup

Step 1: Install the Profiling Package

Step 2: Configure the Node.js Profiling Agent

Create a profiler configuration file (for example, profiler.js) and require the Atatus profiling agent using the installed package path. Make sure this file is loaded at the very beginning of your application.
Ensure this file is required before any other application code. For example, add the following at the top of your app.js or index.js:

Step 3: Configure the API Key and Start Your Application

Provide your Atatus API key either through an environment variable or directly in your application configuration, then start your Node.js application. Option 1: Using an Environment Variable
Option 2: Using Application Configuration

Supported Profile Types