Skip to main content
Version: 1.0.0

processInfo

processInfo ( processNumber : integer ) : object

ParameterTypeDescription
processNumberinteger→Process number
Resultobject←Information about the process

Description​

The processInfo command returns an object providing detailed information about process whose number you pass in processNumber. If you pass an incorrect process number, the command returns a null object.

The returned object contains the following properties:

PropertyTypeDescription
cpuTimenumberRunning time (seconds)
cpuUsagenumberPercentage of time devoted to this process (between 0 and 1)
creationDateTimestring (Date ISO 8601)Date and time of process creation
IDintegerProcess unique ID
namestringProcess name
numberintegerProcess number
preemptivebooleanTrue if run preemptive, false otherwise
sessionIDstringSession UUID
stateintegerCurrent status. Possible values: see below
systemIDstringID for the user process, application process or spare process
typeintegerRunning process type. Possible values: see below
visiblebooleanTrue if visible, false otherwise
  • Possible values for "state":
ConstantValue
kAborted-1
kDelayed1
kDoesNotExist-100
kExecuting0
kPaused5
kWaitingForInputOutput3
kWaitingForInternalFlag4
kWaitingForUserEvent2
  • Possible values for "type":
ConstantValue
kBackupProcess-19
kCacheManager-4
kClientManagerProcess-31
kCompilerProcess-29
kDesignProcess-2
kEventManager-8
kHTTPLogFlusher-58
kIndexingProcess-5
kInternalProcess-18
kInternalTimerProcess-25
kLogFileProcess-20
kMainProcess-39
kMonitorProcess-26
kNone0
kOnExitProcess-16
kOtherProcess-10
kOtherUserProcess4
kWebProcessWithNoContext-3
kWebServerProcess-13
kWorkerProcess5
note

Internal processes have a negative type value and processes generated by the user have a positive value. Worker processes launched by user have type 5.

Here is an example of output object:


{
"number": 4,
"name": "Application process",
"sessionID": "3C81A8D7AFE64C2E9CCFFCDC35DC52F5",
"ID": 4,
"visible": true,
"type": -18,
"state": 0,
"creationDateTime": "2024-09-22T12:46:39.787Z",
"preemptive": false,
"systemID": "123145476132864",
"cpuUsage": 0,
"cpuTime": 0.006769
}

Example​

You want to know if the process is preemptive:


var preemptive : boolean
preemptive = processInfo(currentProcess).preemptive


See also​

processState