Class: gkrellm_update_cpu

Source Location: /gkrellm_update_cpu.class.php

Class Overview [line 214]

gkrellm_update
   |
   --gkrellm_update_cpu

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

Tags:

[ Top ]


Class Variables


Class Methods

get_cpu

gkrellm_cpu get_cpu( int $i_cpu)

[line 233]

Tags:

  • access - public

Parameters:

  • int $i_cpu - The index (0, 1, 2...) of the desired CPU

[ Top ]

get_cpus

array get_cpus( )

[line 242]

Tags:

  • return - An array of gkrellm_cpu objects (one for each CPU in the server)
  • access - public
  • see - gkrellm_cpu

Parameters:

[ Top ]

get_last_total_idle

mixed get_last_total_idle( [bool $b_percentage = false])

[line 328]

Tags:

  • return - The total number of new 'idle' ticks for all CPUs (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_nice

mixed get_last_total_nice( [bool $b_percentage = false])

[line 308]

Tags:

  • return - The total number of new 'nice' ticks for all CPUs (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_sys

mixed get_last_total_sys( [bool $b_percentage = false])

[line 288]

Tags:

  • return - The total number of new 'sys' ticks for all CPUs (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_ticks

int get_last_total_ticks( )

[line 258]

Tags:

  • return - The total new ticks reported in the last update for all CPUS
  • access - public

Parameters:

[ Top ]

get_last_total_user

mixed get_last_total_user( [bool $b_percentage = false])

[line 268]

Tags:

  • return - The total number of new 'user' ticks for all CPUs (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_num_cpus

int get_num_cpus( )

[line 250]

Tags:

  • return - The number of CPUs in the server
  • access - public

Parameters:

[ Top ]


Class Constants


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