Login   Register  
PHP Classes
elePHPant
Icontem

CPU Load Calculator: Retrieve the CPU load level under Linux

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-15 (8 years ago) RSS 2.0 feedStarStarStarStar 73%Total: 4,209 All time: 646 This week: 1,523Down
Version License PHP version Categories  
cpuload 1.0GNU General Public Lice...3System information, Unix, Performance...
Description Author  

This class can be used to retrieve the CPU load level on a system running Linux.

The class retrieves the CPU load information from /proc/stat and returns the user, nice and system mode loads, the CPU load percentage, and the idle load percentage.

Innovation Award  
PHP Programming Innovation award nominee
June 2006
Number 7
The CPU load is a measure of how busy an operating system is.

If a system is too busy and you need to execute an heavy task that may not be prioritary, it may be better to hold on the task for a while until the system becomes less busy.

This class is capable of retrieving the current CPU load, and so it can be useful to make task scheduling decisions that depend on how busy the operating system is on the moment.

Manuel Lemos
Picture of Helmut Daschnigrum
Name: Helmut Daschnigrum <contact>
Classes: 6 packages by
Country: Canada Canada
Age: ???
All time rank: 1017 in Canada Canada
Week rank: 290 Down6 in Canada Canada Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class_CPULoad.php Class Main class file
Accessible without login Plain text file LICENSE Lic. License terms
Accessible without login Plain text file README Doc. Documentation
Accessible without login Plain text file showload.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%Total:4,209All time:646
 This week:0This week:1,523Down
User Ratings User Comments (1)  
 All time
Utility:100%StarStarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:82%StarStarStarStarStar
Tests:-
Videos:-
Overall:73%StarStarStarStar
Rank:94