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

Add CPU cycles load (CPU user and system time) measurement to report #24

Open
MurzNN opened this issue Nov 15, 2021 · 0 comments
Open

Comments

@MurzNN
Copy link

MurzNN commented Nov 15, 2021

Not only memory and time are give performance problems, very often CPU usage is also the problem. But now we don't measure it.
Will be good to add measurement of CPU usage time too!
In PHP we can easily get them via this code:

$rUsage = getrusage();
$cpuTimeUser = $rUsage["ru_utime.tv_usec"]; // user time used (microseconds)
$cpuTimeSystem = $rUsage["ru_stime.tv_usec"]; // system time used (microseconds)

Also there are many other metrics that can be useful, so maybe store full result of that function, instead of several values, and allow to manually add needed ones to report?

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

1 participant