mem-info-0.1.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.Print

Description

This module provides functions that format the output of the printmem command

Synopsis

Documentation

class AsCmdName a where Source #

Identifies a type as a label to use to index programs in the report output

The label is also used to group related processes under a single program

Methods

asCmdName :: a -> Text Source #

Instances

Instances details
AsCmdName Text Source # 
Instance details

Defined in System.MemInfo.Print

Methods

asCmdName :: Text -> Text Source #

AsCmdName (ProcessID, Text) Source # 
Instance details

Defined in System.MemInfo.Print

fmtAsHeader :: Bool -> Text Source #

Generates the text of the printed header of the memory report

fmtOverall :: Bool -> (Int, Int) -> Text Source #

Generates the text showing the overall memory in the memory report

fmtMemUsage :: AsCmdName a => Bool -> a -> MemUsage -> Text Source #

Generates the text of a row displaying the metrics for a single command in the memory report