See the CPU work in context
Explore the flame graph, zoom into a stack, search functions, or switch to Top functions. Distinguish a wide parent stack from time spent in the function itself before deciding what to rewrite.
Profile Node.js in Flame IDE with CPU flame graphs, top functions, source hot lines, and heap snapshot comparisons. Give measured hotspots to an AI agent.
A slow request can come from computation, allocation, or waiting on something outside the process. Flame's Node profiler helps investigate the CPU and memory parts of that question from the same workspace as the source. Capture a representative workload, inspect sampled stacks and function costs, and use that evidence to choose a focused optimization. Record again after the change to check whether it helped.
Explore the flame graph, zoom into a stack, search functions, or switch to Top functions. Distinguish a wide parent stack from time spent in the function itself before deciding what to rewrite.
Open source locations from the profile and use hot-line annotations where source mapping is available. Give the heaviest functions to an agent through Optimize with agent, then review its proposed change against the capture.
Take heap snapshots and compare constructor-level object counts and size summaries across captures. Use growth as a lead for investigation; an increasing bucket alone does not prove a leak.
Use Flame's built-in Node debugger for the project and confirm that the process is running or paused. CPU and heap controls become available only when that live session advertises the corresponding profiling capability.
Open Profiler, choose Record CPU, reproduce the slow action, and stop the recording. Keep the input, request volume, warm-up, and workload duration consistent enough to repeat the experiment.
Explore the flame graph and top functions to find expensive paths. Open source locations and enable hot lines when useful. For a memory question, take heap snapshots around a repeatable workload and compare object count and size changes by constructor.
Make a focused change manually or ask an agent to work from the profile context. Run correctness tests, then repeat the original workload. Compare captures and application measurements before concluding that the optimization improved the problem.