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 % usage to Info Panel #144

Closed
wants to merge 1 commit into from
Closed

Conversation

@adrianbj
Copy link
Contributor

adrianbj commented Feb 24, 2016

No description provided.

@adrianbj

This comment has been minimized.

Copy link
Contributor Author

adrianbj commented Feb 24, 2016

screen shot 2016-02-24 at 10 09 27 am

@dg

This comment has been minimized.

Copy link
Member

dg commented Feb 28, 2016

What about to add both information, user usage and system usage?

if(self::$getrusage) {
$dat = getrusage();
self::$rusage = $dat["ru_utime.tv_sec"]*1e6+$dat["ru_utime.tv_usec"];
}

This comment has been minimized.

Copy link
@enumag

enumag Feb 28, 2016

Contributor

Shouldn't this be skipped in production mode? Also your coding style is not correct.

@dg dg closed this in 2c59542 Feb 28, 2016
dg added a commit that referenced this pull request Feb 28, 2016
@adrianbj

This comment has been minimized.

Copy link
Contributor Author

adrianbj commented Feb 28, 2016

Sorry for the incorrect coding style - I assume you meant the location of curly braces? I'll be sure to pay more attention to this in any future PR's.

Thanks for implementing the system usage as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.