monky-2.2.1.0: A system state collecting library and application

Maintainerongy
Stabilitytesting
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

Monky.Examples.CPU

Description

 

Synopsis

Documentation

getCPUHandle Source #

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 CPUHandle Source #

Same as getCPUHandle but tries to guess the thermal zone

getNumaHandles Source #

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 NumaHandle Source #

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 FreqHandle Source #

Get a handle to access max node frequency

getFreqNuma :: ScalingType -> RawNuma -> IO FreqHandle Source #

Numa away version of getFreqHandle

getTempHandle :: String -> IO TempHandle Source #

Get a TempHandle for the specified thermal zone

getTempHandle' :: IO TempHandle Source #

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 RawCPU Source #

Get a raw CPU handle