Profiling

Make a dump of the V8 heap for inspection. Use this functionality to analyze application memory usage and to find the cause of memory leaks. Taking a heap dump is a synchronous action. Heap dumps can be opened and inspected using Google Chrome. To do so, open it in the developer tool's Profile tab.

Depending on the size of the heap, this is noticeable and will have an effect on application performance.

Put the Node.js runtime into profiling mode for 10 seconds and download the generated CPU profile. Use this functionality to analyze application performance and slow functions or bottlenecks. CPU profiles can be opened and inspected using Google Chrome. To do so, open it in the developer tool's Profile tab.

Profiling production applications will have an impact on the performance of the application. Occasinally, we also noticed memory leaks caused by profiling an application.