前言

如果你希望快速了解火焰图并学习如何优化 Node.js 代码,那么这篇文档是一个很好的起点。

If you're looking to quickly get started with understanding flamegraphs and learning how to optimize Node.js code then this is a great place to start.

  1. 安装

Setup

  1. 准备

Getting ready

  1. 首次分析

First analysis

  1. 火焰图

Flamegraphs

  1. 控制面板

Controls

  1. 优化热函数

Optimizing a hot function

  1. 减小火焰图大小

Reducing the graph size

  1. 高级分析

Advanced analysis

  1. 高级控件

Advanced controls