Copyright | (c) José A. Romero L. |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | José A. Romero L. <escherdragon@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe |
Language | Haskell2010 |
Provides information about used CPU times, obtained from parsing the
/proc/stat
file using some of the facilities included in the
System.Taffybar.Information.StreamInfo module.
And also provides information about the temperature of cores.
(Now supports only physical cpu).
- getCPULoad :: String -> IO [Double]
- getCPUInfo :: String -> IO [Int]
- getCPUTemp :: [String] -> IO [Int]
Documentation
getCPULoad :: String -> IO [Double] Source #
Returns a two-element list containing relative system and user times
calculated using two almost simultaneous samples of the /proc/stat
file
for the given core (or all of them aggregated, if "cpu" is passed).