Class: gkrellm_cpu

Source Location: /gkrellm_update_cpu.class.php

Class Overview [line 24]


The get_last_* functions all return the difference between the last and second to last updates

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

The get_last_* functions all return the difference between the last and second to last updates

[ Top ]


Class Variables


Class Methods

get_cpu

int get_cpu( )

[line 137]

Tags:

  • return - The CPU number
  • access - public

Parameters:

[ Top ]

get_idle

int get_idle( )

[line 153]

Tags:

  • return - This CPU's cumulative 'idle' ticks
  • access - public

Parameters:

[ Top ]

get_last_idle

int get_last_idle( [bool $b_percentage = false])

[line 113]

Tags:

  • return - The total new 'idle' ticks reported in the last update for this CPU (or, if $b_percentage is true, the percentage of total ticks this represents)
  • access - public

Parameters:

  • bool $b_percentage - If true, returns the percentage of total ticks this represents

[ Top ]

get_last_nice

int get_last_nice( [bool $b_percentage = false])

[line 79]

Tags:

  • return - The total new 'nice' ticks reported in the last update for this CPU (or, if $b_percentage is true, the percentage of total ticks this represents)
  • access - public

Parameters:

  • bool $b_percentage - If true, returns the percentage of total ticks this represents

[ Top ]

get_last_sys

int get_last_sys( [bool $b_percentage = false])

[line 96]

Tags:

  • return - The total new 'sys' ticks reported in the last update for this CPU (or, if $b_percentage is true, the percentage of total ticks this represents)
  • access - public

Parameters:

  • bool $b_percentage - If true, returns the percentage of total ticks this represents

[ Top ]

get_last_total

int get_last_total( )

[line 53]

Tags:

  • return - The total new ticks for this CPU
  • access - public

Parameters:

[ Top ]

get_last_user

int get_last_user( [bool $b_percentage = false])

[line 62]

Tags:

  • return - The total new 'user' ticks reported in the last update for this CPU (or, if $b_percentage is true, the percentage of total ticks this represents)
  • access - public

Parameters:

  • bool $b_percentage - If true, returns the percentage of total ticks this represents

[ Top ]

get_nice

int get_nice( )

[line 169]

Tags:

  • return - This CPU's cumulative 'nice' ticks
  • access - public

Parameters:

[ Top ]

get_sys

int get_sys( )

[line 161]

Tags:

  • return - This CPU's cumulative 'sys' ticks
  • access - public

Parameters:

[ Top ]

get_total

int get_total( )

[line 129]

Tags:

  • return - The total cumulative ticks for this CPU
  • access - public

Parameters:

[ Top ]

get_user

int get_user( )

[line 145]

Tags:

  • return - This CPU's cumulative 'user' ticks
  • access - public

Parameters:

[ Top ]


Class Constants


Documentation generated on Sun, 29 Oct 2006 21:26:06 +0000 by phpDocumentor 1.3.0