Portability | Linux |
---|---|
Stability | testing |
Maintainer | ongy |
Safe Haskell | None |
- getCPUHandle :: ScalingType -> String -> IO CPUHandle
- getCPUHandle' :: ScalingType -> IO CPUHandle
- getNumaHandles :: ScalingType -> [String] -> IO NumaHandle
- getNumaHandles' :: ScalingType -> IO NumaHandle
- data ScalingType
- = ScalingMax
- | ScalingCur
- | ScalingNone
- data CPUHandle
- data NumaHandle
- data FreqHandle
- data TempHandle
- getFreqHandle :: ScalingType -> IO FreqHandle
- getFreqNuma :: ScalingType -> RawNuma -> IO FreqHandle
- getTempHandle :: String -> IO TempHandle
- getTempHandle' :: IO TempHandle
- getTempHandles :: IO [TempHandle]
- getRawNumas :: IO [RawNuma]
- getRawCPU :: IO RawCPU
Documentation
:: ScalingType | The type of scaling frequency that should be reported |
-> String | The thermal zone of the cpu |
-> IO CPUHandle |
Get a CPUHandle
This is a shiny combination of the raw handles exported by this module
getCPUHandle' :: ScalingType -> IO CPUHandleSource
Same as getCPUHandle
but tries to guess the thermal zone
:: ScalingType | The type of scaling frequency that should be reported |
-> [String] | A list of thermal zones for our numa handles |
-> IO NumaHandle |
Numa aware version of getCPUHandle
getNumaHandles' :: ScalingType -> IO NumaHandleSource
Same as getNumaHandles
but tries to guess the thermal zone
data ScalingType Source
Which values should be returned by getCPUFreq
ScalingMax | Use the maximum frequencie allowed |
ScalingCur | Use the current frequencie used |
ScalingNone | Don't open any files for scaling type |
getFreqHandle :: ScalingType -> IO FreqHandleSource
Get a handle to access max node frequency
getFreqNuma :: ScalingType -> RawNuma -> IO FreqHandleSource
Numa away version of getFreqHandle
getTempHandle :: String -> IO TempHandleSource
Get a TempHandle
for the specified thermal zone
getTempHandle' :: IO TempHandleSource
Get the TempHandle
for the system (tries to guess CPU zone)
getTempHandles :: IO [TempHandle]Source
Get a TempHandle
for each cpu termal zone on the system. will be infinite list, with invalidated zones for convinience
getRawNumas :: IO [RawNuma]Source
Get raw numa aware cpu handles