--cpu-prof


版本历史
版本变更
v20.16.0

--cpu-prof 标志现在稳定。

v12.0.0

新增于: v12.0.0

稳定性: 2 - 稳定的

\Stability: 2 - Stable

启动时开始 V8 CPU 分析器,并且在退出前将 CPU 分析文件写入磁盘。

\Starts the V8 CPU profiler on start up, and writes the CPU profile to disk before exit.

如果未指定 --cpu-prof-dir,则生成的分析文件放在当前工作目录中。

\If --cpu-prof-dir is not specified, the generated profile is placed in the current working directory.

如果未指定 --cpu-prof-name,则生成的分析文件名为 CPU.${yyyymmdd}.${hhmmss}.${pid}.${tid}.${seq}.cpuprofile

\If --cpu-prof-name is not specified, the generated profile is named CPU.${yyyymmdd}.${hhmmss}.${pid}.${tid}.${seq}.cpuprofile.

$ node --cpu-prof index.js
$ ls *.cpuprofile
CPU.20190409.202950.15293.0.0.cpuprofile 

AltStyle によって変換されたページ (->オリジナル) /