C# Class HelloWorld.Samples.PerformanceInfo

Mostra file Open project: adamabdelhamed/PowerArgs Class Usage Examples

Public Methods

Method Description
GetCPUPercentage ( ) : double
GetPhysicalAvailableMemoryInMiB ( ) : System.Int64
GetTotalMemoryInMiB ( ) : System.Int64

Private Methods

Method Description
CreateCPUCounter ( ) : PerformanceCounter
GetPerformanceInfo ( [ PerformanceInformation, [ Size ) : bool

Method Details

GetCPUPercentage() public static method

public static GetCPUPercentage ( ) : double
return double

GetPhysicalAvailableMemoryInMiB() public static method

public static GetPhysicalAvailableMemoryInMiB ( ) : System.Int64
return System.Int64

GetTotalMemoryInMiB() public static method

public static GetTotalMemoryInMiB ( ) : System.Int64
return System.Int64