准备
安装好 clinic 并验证 clinic flame
命令可用后,我们就可以开始分析应用了。
Once we've installed clinic and verified that clinic flame is functioning we can profile an application.
我们先 clone 官方 Clinic Flame 示例:
To try this out, let's clone and prepare the official Clinic Flame demo:
git clone https://github.com/nearform/node-clinic-flame-demo.git
cd node-clinic-flame-demo
npm install
当 npm 下载依赖项时,你可以查看 Readme,然后我们就可以进行分析了!
While npm downloads the dependencies, check the Readme, then we are ready to profile!