- type ProcessName = String
- data ProcessState
- data ProcStatus = ProcStatus {
- psProcessId :: Int
- psCommand :: String
- psState :: ProcessState
- psParentProcessId :: Int
- psProcessGroupId :: Int
- psSessionId :: Int
- psNice :: Int
- psNumThreads :: Int
- psVirtualMem :: Int
- psResidentMem :: Int
- psUID :: Int
- psUsername :: String
- psCmdline :: String
- psCpuPercent :: Double
- type UID = Int
- type UserName = String
- type UserDatabase = Map UID UserName
- procGetProcessDirs :: IO [FilePath]
- procGetAllProcessStatus :: IO [ProcStatus]
- getUserDatabase :: IO UserDatabase
Types
type ProcessName = StringSource
data ProcessState Source
data ProcStatus Source
ProcStatus | |
|
type UserDatabase = Map UID UserNameSource
Methods
procGetProcessDirs :: IO [FilePath]Source
Information Box to find status.
Get process directories.
procGetAllProcessStatus :: IO [ProcStatus]Source
Get information for all running processes.
getUserDatabase :: IO UserDatabaseSource
Get user database for search username with UID.