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

Class StatProcess

object --+    
         |    
   _Handle --+
             |
            StatProcess

Provides methods for obtaining statistics for a system process. To obtain the object for a process, use the Statistics.get_procs_stats_count and Statistics.get_proc_stat methods.

Instance Methods [hide private]
 
get_command_name(self)
Return the process command name
 
get_id(self)
Returns the process system ID.
 
get_owner_user_name(self)
Return the user name of the process owner.
 
get_total_mem_usage(self)
Return the total memory size used by the process, in bytes.
 
get_real_mem_usage(self)
Return the physical memory usage size in bytes.
 
get_virt_mem_usage(self)
Return the virtual memory usage size in bytes.
 
get_start_time(self)
Return the process start time in seconds (number of seconds since January 1, 1601 (UTC)).
 
get_total_time(self)
Returns the process total time (system plus user), in seconds.
 
get_user_time(self)
Return the process user time, in seconds.
 
get_system_time(self)
Return the process system time, in seconds.
 
get_state(self)
Return the process state information.
 
get_cpu_usage(self)
Return the process CPU usage in percents.

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_command_name(self)

 

Return the process command name

Returns:
A string containing the result.

get_id(self)

 

Returns the process system ID.

Returns:
An integer containing the PID.

get_owner_user_name(self)

 

Return the user name of the process owner.

Returns:
A string containing the user name.

get_total_mem_usage(self)

 

Return the total memory size used by the process, in bytes.

Returns:
An integer containing the result.

get_real_mem_usage(self)

 

Return the physical memory usage size in bytes.

Returns:
An integer containing the result.

get_virt_mem_usage(self)

 

Return the virtual memory usage size in bytes.

Returns:
An integer containing the result.

get_start_time(self)

 

Return the process start time in seconds (number of seconds since January 1, 1601 (UTC)).

Returns:
An integer containing the result.

get_total_time(self)

 

Returns the process total time (system plus user), in seconds.

Returns:
An integer containing the result.

get_user_time(self)

 

Return the process user time, in seconds.

Returns:
An integer containing the result.

get_system_time(self)

 

Return the process system time, in seconds.

Returns:
An integer containing the result.

get_state(self)

 

Return the process state information. For a complete list of process states, see the prlsdkapi.prlsdk.consts section and look for PPS_PROC_xxx constants.

Returns:
An integer containing the process state.

get_cpu_usage(self)

 

Return the process CPU usage in percents.

Returns:
An integer containing the result.