We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
通过 CPU profile 以可视化分析报告的形式展示 Node.js 进程启动阶段构成,用来处理一些启动阶段的性能问题。
enable_startup_analysis
estimated_startup_cost
其中 estimated_startup_cost 也可以在明确启动结束的地方使用 xprofiler.ready() 来替换,例如:
xprofiler.ready()
http.createServer(requestHandler).listen(8888, ()=>{ console.log('server running.'); xprofiler.ready(); });
结束后 xtransit 会在最近的一次采集中将得到的 CPU Profile 上报给监控服务端(时间戳校验有效性)。
xtransit
xprofiler-console 会在收到此分析报告后在启动阶段分析的 Tab 中给出可视化分析结果。
xprofiler-console
The text was updated successfully, but these errors were encountered:
hyj1991
No branches or pull requests
背景
通过 CPU profile 以可视化分析报告的形式展示 Node.js 进程启动阶段构成,用来处理一些启动阶段的性能问题。
方案
enable_startup_analysis
:启用启动前的分析 CPU profiling 的能力estimated_startup_cost
:确认启动阶段预估时间其中
estimated_startup_cost
也可以在明确启动结束的地方使用xprofiler.ready()
来替换,例如:结束后
xtransit
会在最近的一次采集中将得到的 CPU Profile 上报给监控服务端(时间戳校验有效性)。xprofiler-console
会在收到此分析报告后在启动阶段分析的 Tab 中给出可视化分析结果。The text was updated successfully, but these errors were encountered: