Package prlsdkapi :: Class StatCpu
[hide private]
[frames] | no frames]

Class StatCpu

object --+    
         |    
   _Handle --+
             |
            StatCpu

Provides methods for obtaining CPU statistics for the host computer or a virtual machine. To obtain the object, use the Statistics.get_cpu_stat method.

Instance Methods [hide private]
 
get_cpu_usage(self)
Return the CPU usage, in percents.
 
get_total_time(self)
Return the CPU total time, in seconds.
 
get_user_time(self)
Return the CPU user time in seconds
 
get_system_time(self)
Return the CPU time, in seconds.

Inherited from _Handle: __del__, __init__, add_ref, free, from_string, get_handle_type, get_package_id, get_type

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_cpu_usage(self)

 

Return the CPU usage, in percents.

Returns:
An integer containing the CPU usage in percent.

get_total_time(self)

 

Return the CPU total time, in seconds.

Returns:
An integer containing the CPU total time, in seconds.

get_user_time(self)

 

Return the CPU user time in seconds

Returns:
An integer containing the CPU user time, in seconds.

get_system_time(self)

 

Return the CPU time, in seconds.

Returns:
An integer containing the CPU time in seconds.