Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 提供 EZM 3.0 的快速启动版本 #146

Open
hyj1991 opened this issue Jul 4, 2021 · 2 comments
Open

[Feat] 提供 EZM 3.0 的快速启动版本 #146

hyj1991 opened this issue Jul 4, 2021 · 2 comments
Assignees

Comments

@hyj1991
Copy link
Owner

hyj1991 commented Jul 4, 2021

针对本地简单的压测或者一些问题复现 场景,计划提供一个快速启动版本,全局安装:

npm i xperf -g

后即可使用命令:

xperf start app.js

来直接运行并且打开控制台,可以看到当前 nodejs 应用的实时状态信息,以及可以对此应用进行各种 EZM 3.0 提供的状态导出。

@hyj1991 hyj1991 self-assigned this Jul 4, 2021
@hyj1991
Copy link
Owner Author

hyj1991 commented Jul 4, 2021

@hyj1991
Copy link
Owner Author

hyj1991 commented Jul 4, 2021

命令行采样:

  • --start-cpu-profiling: 直接开启 CPU 采样
  • --start-gc-profiling:直接开启 GC 采样
  • --start-heap-profling: 直接开启堆采样

结束采样在打开的本地控制台执行。


指定 Runtime 位置:

  • --node [/path/to/node]

Node.js 参数:

  • --arg [arg1] --arg [arg2]

@hyj1991 hyj1991 changed the title [FEAT] 提供 EZM 3.0 的快速启动版本 [] 提供 EZM 3.0 的快速启动版本 Jul 4, 2021
@hyj1991 hyj1991 changed the title [] 提供 EZM 3.0 的快速启动版本 [Feat] 提供 EZM 3.0 的快速启动版本 Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant