Skip to content

Add CPU % usage to Info Panel - #144

Closed
adrianbj wants to merge 1 commit into
nette:masterfrom
adrianbj:master
Closed

Add CPU % usage to Info Panel#144
adrianbj wants to merge 1 commit into
nette:masterfrom
adrianbj:master

Conversation

@adrianbj

Copy link
Copy Markdown
Contributor

No description provided.

@adrianbj

Copy link
Copy Markdown
Contributor Author

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

@dg

dg commented Feb 28, 2016

Copy link
Copy Markdown
Member

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

Comment thread src/Tracy/Debugger.php
if(self::$getrusage) {
$dat = getrusage();
self::$rusage = $dat["ru_utime.tv_sec"]*1e6+$dat["ru_utime.tv_usec"];
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@adrianbj

Copy link
Copy Markdown
Contributor Author

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants