C# Class IntelShared.Common.ProcessorQueryAndControl

Afficher le fichier Open project: 01org/NMPRK Class Usage Examples

Méthodes publiques

Méthode Description
DecodeTimeWindowForPowerLimit ( ulong val, double timeUnit ) : double
EncodeTimeWindowForPowerLimit ( double val, double timeUnit ) : ulong
FromBinaryFractionFormat ( BitArray ba ) : double
GetCpuInfo ( int &phyProc, int &cores, int &logProc, LogicalProcessorInfo &aProcessorList ) : void
GetCurrentFrequency ( int miMaxNonTurboRatio ) : double
GetCurrentPState ( int &PState, int &NumPStates ) : bool
GetCurrentProcessorNumber ( ushort &group ) : uint
GetMaxNonTurboRatio ( ) : int
GetMinNonTurboRatio ( ) : int
GetPStateVoltage ( uint msr, BitRange range ) : float
GetPackagePowerLimitValues ( PackagePowerLimitIndex idx ) : PackagePowerLimit
GetRaplPowerUnits ( double &powerUnits, double &energyUnits, double &timeUnits ) : bool
GetRegisterValue ( uint msr, int bit ) : bool
GetRegisterValue ( uint msr ) : ulong
GetRegisterValue ( uint msr, BitRange range ) : ulong
GetTSC ( ) : ulong
GetTurboBoostStatus ( bool &Enabled, double &Frequency, int &PState, int &NumPStates ) : bool
GetTurboModeDisable ( bool &disable ) : bool
SetAffinity ( LogicalProcessorInfo lpInfo ) : void
SetPackagePowerLimitValues ( PackagePowerLimitIndex idx, PackagePowerLimit ppl, PackagePowerLimitMask mask ) : void
SetRegisterValue ( uint msr, int bit, bool val ) : bool
SetRegisterValue ( uint msr, BitRange range, ulong value ) : ulong
SetTurboModeDisable ( bool disable ) : bool

Private Methods

Méthode Description
CheckForGPPExEntryPoint ( ) : bool
CloseHandle ( [ hObject ) : bool
CountNumberOfBitsSetInMask ( UIntPtr bitMask ) : uint
CreateMask ( uint aStart, uint aStop ) : ulong
DuplicateHandle ( IntPtr hSourceProcessHandle, IntPtr hSourceHandle, IntPtr hTargetProcessHandle, IntPtr &lpTargetHandle, uint dwDesiredAccess, [ bInheritHandle, uint dwOptions ) : bool
Fail ( ) : Exception
GetActiveProcessorCount ( [ GroupNumber ) : int
GetActiveProcessorGroupCount ( ) : ushort
GetCacheType ( _PROCESSOR_CACHE_TYPE value ) : string
GetCountsForGT64LPs ( _LOGICAL_PROCESSOR_RELATIONSHIP aType, int &aCount, LogicalProcessorInfo &aProcessorList ) : bool
GetCurrentProcessorNumber ( ) : uint
GetCurrentProcessorNumberEx ( _PROCESSOR_NUMBER &ProcNumber ) : uint
GetCurrentThread ( ) : IntPtr
GetLogicalProcessorInformation ( [ infos, uint &infoSize ) : bool
GetLogicalProcessorInformationEx ( [ RelationshipType, [ Buffer, uint &ReturnedLength ) : bool
GetLogicalProcessorInformationExWrapper ( _LOGICAL_PROCESSOR_RELATIONSHIP _LOGICAL_PROCESSOR_RELATIONSHIP, _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX_P oDummy, uint &returnLength ) : bool
GetMaximumProcessorCount ( [ GroupNumber ) : int
GetMaximumProcessorGroupCount ( ) : ushort
GetNumaDataArray ( _LOGICAL_PROCESSOR_RELATIONSHIP aType ) : _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX_N[]
GetNumaNodeProcessorMaskEx ( [ Node, _GROUP_AFFINITY &ProcessorMask ) : bool
GetPackagePowerLimit1_RegVal ( ) : ulong
GetPackagePowerLimit2_RegVal ( ) : ulong
GetPhysicalProcessorCount ( int &aCores, int &aLPs, LogicalProcessorInfo &aProcessorList ) : int
GetPhysicalProcessorCountForGT64LPs ( int &aCores, int &aLPs, LogicalProcessorInfo &aProcessorList ) : int
GetProcessorDataArray ( _LOGICAL_PROCESSOR_RELATIONSHIP aType ) : _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX_P[]
GetProcessorInfo64 ( ) : List
GetProcessorInfo86 ( ) : List
GetThreadGroupAffinity ( IntPtr hThread, _GROUP_AFFINITY &GroupAffinity ) : bool
GetTimeWindowPowerLimit1_RegVal ( ) : ulong
GetTimeWindowPowerLimit2_RegVal ( ) : ulong
ProcessorQueryAndControl ( ) : System
ReadMPerfAPerf ( ulong &MPERF, ulong &APERF ) : void
SetThreadAffinityMask ( IntPtr hThread, UIntPtr dwThreadAffinityMask ) : UIntPtr
SetThreadGroupAffinity ( IntPtr hThread, _GROUP_AFFINITY &GroupAffinity, _GROUP_AFFINITY &PreviousGroupAffinity ) : System.Boolean

Method Details

DecodeTimeWindowForPowerLimit() public static méthode

public static DecodeTimeWindowForPowerLimit ( ulong val, double timeUnit ) : double
val ulong
timeUnit double
Résultat double

EncodeTimeWindowForPowerLimit() public static méthode

public static EncodeTimeWindowForPowerLimit ( double val, double timeUnit ) : ulong
val double
timeUnit double
Résultat ulong

FromBinaryFractionFormat() public static méthode

public static FromBinaryFractionFormat ( BitArray ba ) : double
ba System.Collections.BitArray
Résultat double

GetCpuInfo() public static méthode

public static GetCpuInfo ( int &phyProc, int &cores, int &logProc, LogicalProcessorInfo &aProcessorList ) : void
phyProc int
cores int
logProc int
aProcessorList LogicalProcessorInfo
Résultat void

GetCurrentFrequency() public static méthode

public static GetCurrentFrequency ( int miMaxNonTurboRatio ) : double
miMaxNonTurboRatio int
Résultat double

GetCurrentPState() public static méthode

public static GetCurrentPState ( int &PState, int &NumPStates ) : bool
PState int
NumPStates int
Résultat bool

GetCurrentProcessorNumber() public static méthode

public static GetCurrentProcessorNumber ( ushort &group ) : uint
group ushort
Résultat uint

GetMaxNonTurboRatio() public static méthode

public static GetMaxNonTurboRatio ( ) : int
Résultat int

GetMinNonTurboRatio() public static méthode

public static GetMinNonTurboRatio ( ) : int
Résultat int

GetPStateVoltage() public static méthode

public static GetPStateVoltage ( uint msr, BitRange range ) : float
msr uint
range BitRange
Résultat float

GetPackagePowerLimitValues() public static méthode

public static GetPackagePowerLimitValues ( PackagePowerLimitIndex idx ) : PackagePowerLimit
idx PackagePowerLimitIndex
Résultat PackagePowerLimit

GetRaplPowerUnits() public static méthode

public static GetRaplPowerUnits ( double &powerUnits, double &energyUnits, double &timeUnits ) : bool
powerUnits double
energyUnits double
timeUnits double
Résultat bool

GetRegisterValue() public static méthode

public static GetRegisterValue ( uint msr, int bit ) : bool
msr uint
bit int
Résultat bool

GetRegisterValue() public static méthode

public static GetRegisterValue ( uint msr ) : ulong
msr uint
Résultat ulong

GetRegisterValue() public static méthode

public static GetRegisterValue ( uint msr, BitRange range ) : ulong
msr uint
range BitRange
Résultat ulong

GetTSC() public static méthode

public static GetTSC ( ) : ulong
Résultat ulong

GetTurboBoostStatus() public static méthode

public static GetTurboBoostStatus ( bool &Enabled, double &Frequency, int &PState, int &NumPStates ) : bool
Enabled bool
Frequency double
PState int
NumPStates int
Résultat bool

GetTurboModeDisable() public static méthode

public static GetTurboModeDisable ( bool &disable ) : bool
disable bool
Résultat bool

SetAffinity() public static méthode

public static SetAffinity ( LogicalProcessorInfo lpInfo ) : void
lpInfo LogicalProcessorInfo
Résultat void

SetPackagePowerLimitValues() public static méthode

public static SetPackagePowerLimitValues ( PackagePowerLimitIndex idx, PackagePowerLimit ppl, PackagePowerLimitMask mask ) : void
idx PackagePowerLimitIndex
ppl PackagePowerLimit
mask PackagePowerLimitMask
Résultat void

SetRegisterValue() public static méthode

public static SetRegisterValue ( uint msr, int bit, bool val ) : bool
msr uint
bit int
val bool
Résultat bool

SetRegisterValue() public static méthode

public static SetRegisterValue ( uint msr, BitRange range, ulong value ) : ulong
msr uint
range BitRange
value ulong
Résultat ulong

SetTurboModeDisable() public static méthode

public static SetTurboModeDisable ( bool disable ) : bool
disable bool
Résultat bool