- data ProcessBuffer = ProcessBuffer {
- processBufferName :: String
- processBufferClient :: Client
- processBufferPageId :: PageId
- processBufferMode :: PageMode
- processBufferStatus :: TVar [ProcStatus]
- processBufferOptions :: [(ProcOption, SortColumnId)]
- processBufferSortStatus :: TVar (ProcOption, SortType)
- processBufferBroadcastChannel :: TChan ProcTChanSignal
- processBufferDelay :: Int
- processBufferViewCounter :: TVar Int
- data ProcTChanSignal
- = Empty
- | UpdateProcesses
- | KillProcess Int
- class ProcStatusClass a where
- getColumnTitle :: a -> String
- getColumnMaxWidth :: a -> Maybe Int
- getCellText :: a -> ProcStatus -> String
- getCellXAlign :: a -> Float
- compareRow :: a -> ProcStatus -> ProcStatus -> IO Ordering
- data ProcOption
- = MProcessId
- | MCommand
- | MState
- | MParentProcessId
- | MProcessGroupId
- | MSessionId
- | MPriority
- | MThreads
- | MCPUPercent
- | MVirtualMemory
- | MResidentMemory
- | MCmdline
- | MUser
- processBufferNew :: FilePath -> Client -> PageId -> IO ProcessBuffer
- processBufferUpdate :: ProcessBuffer -> IO ()
- showPriority :: Int -> String
Documentation
data ProcessBuffer Source
data ProcTChanSignal Source
class ProcStatusClass a whereSource
getColumnTitle :: a -> StringSource
getColumnMaxWidth :: a -> Maybe IntSource
getCellText :: a -> ProcStatus -> StringSource
getCellXAlign :: a -> FloatSource
compareRow :: a -> ProcStatus -> ProcStatus -> IO OrderingSource
data ProcOption Source
processBufferNew :: FilePath -> Client -> PageId -> IO ProcessBufferSource
Create process buffer.
processBufferUpdate :: ProcessBuffer -> IO ()Source
Update process buffer status.
showPriority :: Int -> StringSource
Show priority.