core
core copied to clipboard
[FEATURE] 需要一个 Server 端 CPUProfile 命令
如果你的需求与问题相关,请在下面描述一下(Is your feature request related to a problem? Please describe.)
类似针对插件进程的 Start Extension Host Profile 命令,用于生成 Server 进程运行时的 cpuprofile 文件,便于排查 Server 端问题

描述你预期的功能表现(Describe the solution you'd like)
- 新增
Start Server Process Profile命令 - 支持通过命令/状态栏入口的方式停止 profiling
- 支持保存 cpuprofile 文件到指定目录
描述你考虑过的替代方案(Describe alternatives you've considered)
补充信息(Additional context)
+1
可以参考 https://github.com/opensumi/core/blob/58b998d9e1f721928f576579f16ded46b7505e84/packages/extension/src/node/extension.profiler.service.ts#L39-L49 实现
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.