mem-info-0.3.0.0: Print the core memory usage of programs
Copyright(c) 2022 Tim Emiola
LicenseBSD3
MaintainerTim Emiola <adetokunbo@emio.la>
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.MemInfo.Choices

Description

This module defines the command line flags used to control the behavior of the printmem command

Synopsis

Documentation

data Choices Source #

Represents the user-specified choices extracted from the command line

Instances

Instances details
Generic Choices Source # 
Instance details

Defined in System.MemInfo.Choices

Associated Types

type Rep Choices :: Type -> Type #

Methods

from :: Choices -> Rep Choices x #

to :: Rep Choices x -> Choices #

Show Choices Source # 
Instance details

Defined in System.MemInfo.Choices

Eq Choices Source # 
Instance details

Defined in System.MemInfo.Choices

Methods

(==) :: Choices -> Choices -> Bool #

(/=) :: Choices -> Choices -> Bool #

type Rep Choices Source # 
Instance details

Defined in System.MemInfo.Choices

type Rep Choices = D1 ('MetaData "Choices" "System.MemInfo.Choices" "mem-info-0.3.0.0-7EhepxXcovz8rKbAxS2unK" 'False) (C1 ('MetaCons "Choices" 'PrefixI 'True) (((S1 ('MetaSel ('Just "choiceSplitArgs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "choiceOnlyTotal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "choiceByPid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "choiceShowSwap") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "choiceReversed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "choiceWatchSecs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "choicePidsToShow") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (NonEmpty ProcessID))) :*: (S1 ('MetaSel ('Just "choicePrintOrder") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PrintOrder)) :*: S1 ('MetaSel ('Just "choiceStyle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Style)))))))

data Style Source #

Determines the format style of the output

Constructors

Csv 
Normal 

Instances

Instances details
Generic Style Source # 
Instance details

Defined in System.MemInfo.Choices

Associated Types

type Rep Style :: Type -> Type #

Methods

from :: Style -> Rep Style x #

to :: Rep Style x -> Style #

Read Style Source # 
Instance details

Defined in System.MemInfo.Choices

Show Style Source # 
Instance details

Defined in System.MemInfo.Choices

Methods

showsPrec :: Int -> Style -> ShowS #

show :: Style -> String #

showList :: [Style] -> ShowS #

Eq Style Source # 
Instance details

Defined in System.MemInfo.Choices

Methods

(==) :: Style -> Style -> Bool #

(/=) :: Style -> Style -> Bool #

type Rep Style Source # 
Instance details

Defined in System.MemInfo.Choices

type Rep Style = D1 ('MetaData "Style" "System.MemInfo.Choices" "mem-info-0.3.0.0-7EhepxXcovz8rKbAxS2unK" 'False) (C1 ('MetaCons "Csv" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Normal" 'PrefixI 'False) (U1 :: Type -> Type))

data PrintOrder Source #

Determines the order in which MemUsages in a report are printed out

Constructors

Swap 
Private 
Shared 
Count 

Instances

Instances details
Generic PrintOrder Source # 
Instance details

Defined in System.MemInfo.Choices

Associated Types

type Rep PrintOrder :: Type -> Type #

Read PrintOrder Source # 
Instance details

Defined in System.MemInfo.Choices

Show PrintOrder Source # 
Instance details

Defined in System.MemInfo.Choices

Eq PrintOrder Source # 
Instance details

Defined in System.MemInfo.Choices

type Rep PrintOrder Source # 
Instance details

Defined in System.MemInfo.Choices

type Rep PrintOrder = D1 ('MetaData "PrintOrder" "System.MemInfo.Choices" "mem-info-0.3.0.0-7EhepxXcovz8rKbAxS2unK" 'False) ((C1 ('MetaCons "Swap" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Private" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Shared" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Count" 'PrefixI 'False) (U1 :: Type -> Type)))

cmdInfo :: ParserInfo Choices Source #

Specifies a command line that when parsed will provide Choices

getChoices :: IO Choices Source #

Parses the command line arguments.