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

feature: print the CPU usage during sampling cpu profile #126

Open
doujiang24 opened this issue Sep 26, 2022 · 4 comments
Open

feature: print the CPU usage during sampling cpu profile #126

doujiang24 opened this issue Sep 26, 2022 · 4 comments

Comments

@doujiang24
Copy link
Member

The cpu profile may missing the CPU usage high time, when CPU usage goes down quickly.
eg. #123 (comment)

we may record the CPU usage during sampling the CPU profile, and log it.
eg. we can start another goroutine, and log CPU usage continuously.

@songzhibin97
Copy link
Member

During the configuration file change? Is it feasible to pull up the new one before turning off the old one?

@doujiang24
Copy link
Member Author

During the configuration file change? Is it feasible to pull up the new one before turning off the old one?

跟配置变化没关系呢
这里说的是,检查的时候,CPU 是异常,但是采样的时候,CPU 又恢复了的情况,这期间有那么几秒钟间隔

@dumbFeng
Copy link
Contributor

监控到异常时,已经通过scene传递了cpu使用率。

@doujiang24
Copy link
Member Author

@dumbFeng 我说的是,采样期间的 cpu 使用率呢,这中间有一个时间差的。
目前 scene 透出的是触发采样的数据,并不是采样期间的(采样会有好几秒)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants