monky-2.1.0.0: A system state collecting library and application

PortabilityLinux
Stabilitytesting
Maintainerongy
Safe HaskellNone

Monky.Examples.CPU

Description

 

Synopsis

Documentation

getCPUHandleSource

Arguments

:: 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

getNumaHandlesSource

Arguments

:: 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

Constructors

ScalingMax

Use the maximum frequencie allowed

ScalingCur

Use the current frequencie used

ScalingNone

Don't open any files for scaling type

data CPUHandle Source

The handle type for the default setup

data NumaHandle Source

The handle type for the default setup (numa aware)

data FreqHandle Source

Handle to access cpu frequency information

data TempHandle Source

Handle to acces thermal zone information

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

getRawCPU :: IO RawCPUSource

Get a raw CPU handle