diff options
Diffstat (limited to 'src/Xmobar/Plugins/Monitors/Top/Common.hs')
-rw-r--r-- | src/Xmobar/Plugins/Monitors/Top/Common.hs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Xmobar/Plugins/Monitors/Top/Common.hs b/src/Xmobar/Plugins/Monitors/Top/Common.hs new file mode 100644 index 0000000..74b6fdd --- /dev/null +++ b/src/Xmobar/Plugins/Monitors/Top/Common.hs @@ -0,0 +1,32 @@ +----------------------------------------------------------------------------- +-- | +-- Module : Plugins.Monitors.Top.Common +-- Copyright : (c) 2010, 2011, 2012, 2013, 2014, 2018 Jose A Ortega Ruiz +-- License : BSD-style (see LICENSE) +-- +-- Maintainer : Jose A Ortega Ruiz <jao@gnu.org> +-- Stability : unstable +-- Portability : unportable +-- +-- Process activity and memory consumption monitors +-- +----------------------------------------------------------------------------- + +module Xmobar.Plugins.Monitors.Top.Common ( + MemInfo + , Pid + , TimeInfo + , TimeEntry + , Times + , TimesRef + ) where + +import Data.IORef (IORef) +import Data.Time.Clock (UTCTime) + +type MemInfo = (String, Float) +type Pid = Int +type TimeInfo = (String, Float) +type TimeEntry = (Pid, TimeInfo) +type Times = [TimeEntry] +type TimesRef = IORef (Times, UTCTime) |