OSProcess

interface OSProcess

OSProcess represents a process in the operating system. It provides details about the process, including its name, ID, state, resources usage, and more.

Author

N7ghtm4r3

Inheritors

OSProcessImpl

Properties

Link copied to clipboard
abstract val affinityMask: Long

affinityMask The CPU affinity mask for the process.

Link copied to clipboard
abstract val arguments: List<String>

arguments The arguments passed to the process when it was started.

Link copied to clipboard
abstract val bitness: Int

bitness The bitness of the process (e.g., 32-bit, 64-bit).

Link copied to clipboard
abstract val bytesRead: Long

bytesRead The number of bytes read by the process.

Link copied to clipboard
abstract val bytesWritten: Long

bytesWritten The number of bytes written by the process.

Link copied to clipboard
abstract val commandLine: String

commandLine The full command line that was used to start the process.

Link copied to clipboard
abstract val contextSwitches: Long

contextSwitches The number of context switches for the process.

Link copied to clipboard

currentWorkingDirectory The current working directory of the process.

Link copied to clipboard

environmentVariables A map of environment variables used by the process.

Link copied to clipboard
abstract val group: String

group The group associated with the process.

Link copied to clipboard
abstract val groupId: String

groupId The ID of the group associated with the process.

Link copied to clipboard
abstract val hardOpenFileLimit: Long

hardOpenFileLimit The hard limit on the number of files the process can open.

Link copied to clipboard
abstract val kernelTime: Long

kernelTime The amount of time the process has spent in kernel mode, in milliseconds.

Link copied to clipboard
abstract val majorFaults: Long

majorFaults The number of major page faults for the process.

Link copied to clipboard
abstract val minorFaults: Long

minorFaults The number of minor page faults for the process.

Link copied to clipboard
abstract val name: String

name The name of the process (e.g., "java", "nginx").

Link copied to clipboard
abstract val openFiles: Long

openFiles The number of open files used by the process.

Link copied to clipboard
abstract val parentProcessId: Int

parentProcessId The process ID of the parent process.

Link copied to clipboard
abstract val path: String

path The path to the executable of the process.

Link copied to clipboard
abstract val priority: Int

priority The priority of the process.

Link copied to clipboard

processCpuLoadBetweenTicks The CPU load of the process between two ticks, as a percentage.

Link copied to clipboard

processCpuLoadCumulative The cumulative CPU load of the process as a percentage.

Link copied to clipboard
abstract val processId: Int

processId The unique identifier for the process.

Link copied to clipboard
abstract val residentSetSize: Long

residentSetSize The resident set size of the process, in bytes (physical memory used).

Link copied to clipboard
abstract val softOpenFileLimit: Long

softOpenFileLimit The soft limit on the number of files the process can open.

Link copied to clipboard
abstract val startTime: Long

startTime The time when the process started, in milliseconds since the Unix epoch.

Link copied to clipboard
abstract val state: State

state The state of the process (e.g., running, sleeping).

Link copied to clipboard
abstract val threadCount: Int

threadCount The number of threads in the process.

Link copied to clipboard
abstract val threadDetails: List<OSThread>

threadDetails The list of threads associated with the process.

Link copied to clipboard

updateAttributes A flag indicating whether the process attributes should be updated.

Link copied to clipboard
abstract val user: String

user The user running the process.

Link copied to clipboard
abstract val userId: String

userId The ID of the user running the process.

Link copied to clipboard
abstract val userTime: Long

userTime The amount of time the process has spent in user mode, in milliseconds.

Link copied to clipboard
abstract val virtualSize: Long

virtualSize The virtual memory size of the process, in bytes.