Package DE_EPAGES::Core::API::Process
API functions for working with processes
@EXPORT_OK |
Functions
GetCurrentProcessID
Returns the process id of the current process.
Syntax |
$ProcessID = GetCurrentProcessID(); |
Return |
|
GetProcessMemory
Returns the amount of memory used by a process.
Syntax |
$MemSize = GetProcessMemory( $ProcessID ); |
Example |
print GetProcessMemory( GetCurrentProcessID() ) . " bytes used by this process"; |
Input |
|
Return |
|
SetProcessPriority
Sets the Priority of a process.
Syntax |
SetProcessPriority( $ProcessID, $Priority ) |
Example |
SetProcessPriority( GetCurrentProcessID(), 'ABOVE_NORMAL' ); |
Input |
|