我一直在為 REST API 服務器開發 Nest.js 應用程式,我想使用 Node.js 分析工具進行一些性能分析。我知道有幾個工具,如 WebStorm V8 CPU 和記憶體分析(https://www.jetbrains.com/help/webstorm/v8-cpu-and-memory-profiling.html#node_profiling_before_you_start)和節點 CLI 選項--prof。
但是,我不知道如何使用nodeCLI 程式啟動我的 Nest.js 應用程式,所以我不知道如何將這些分析工具應用于我的 Nest.js 應用程式。
有沒有辦法對 Nest.js 應用程式使用 Node.js 分析工具?或者對于 Nest.js 應用程式還有其他好的解決方案嗎?
提前致謝。
uj5u.com熱心網友回復:
您可以使用構建應用程式nest build,然后使用node --prof dist/main. 或者你可以只使用nest start --watch -e 'node --prof'which 應該告訴 Nestnode --prof dist/main用于啟動命令
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/370423.html
上一篇:Sbt無法在Scala3.0.0-M2上找到List類定義
下一篇:覆寫Bootstrap5顏色
