Definition
- Namespace:
- Tizen.System
- Assembly:
- Tizen.System.Information.dll
- API Level:
- 4
The class for system CPU usage.
public class SystemCpuUsage
- Inheritance
-
System.Object
SystemCpuUsage
Constructors
View Source
SystemCpuUsage()
The constructor of SystemCpuUsage class.
Declaration
Exceptions
Type |
Condition |
IOException |
Thrown when an I/O error occurs while reading from the system.
|
System.NotSupportedException |
Thrown when this system does not store the current CPU frequency.
|
API Level: 4
Properties
View Source
IoWait
Time waiting for I/O completion (Percent).
Declaration
public double IoWait { get; }
Property Value
Type |
Description |
System.Double |
|
API Level: 4
View Source
Nice
Running time of niced user processes (Percent).
Declaration
public double Nice { get; }
Property Value
Type |
Description |
System.Double |
|
API Level: 4
Declaration
public int ProcessorCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 4
View Source
System
Running time of kernel processes (Percent).
Declaration
public double System { get; }
Property Value
Type |
Description |
System.Double |
|
API Level: 4
View Source
User
Running time of un-niced user processes (Percent).
Declaration
public double User { get; }
Property Value
Type |
Description |
System.Double |
|
API Level: 4
Methods
View Source
GetCurrentFrequency(Int32)
Gets the current frequency of the processor.
Declaration
public int GetCurrentFrequency(int coreId)
Parameters
Type |
Name |
Description |
System.Int32 |
coreId |
The index (from 0) of the CPU core that you want to know the frequency of.
|
Returns
Type |
Description |
System.Int32 |
The current frequency(MHz) of processor.
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown when the coreId is invalid.
|
API Level: 4
View Source
GetMaxFrequency(Int32)
Gets the max frequency of the processor.
Declaration
public int GetMaxFrequency(int coreId)
Parameters
Type |
Name |
Description |
System.Int32 |
coreId |
The index (from 0) of CPU core that you want to know the frequency of.
|
Returns
Type |
Description |
System.Int32 |
The max frequency(MHz) of processor.
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown when the coreId is invalid.
|
API Level: 4
View Source
Update()
Update the system CPU usage to the latest.
Declaration
Exceptions
Type |
Condition |
IOException |
Thrown when an I/O error occurs while reading from the system.
|
System.NotSupportedException |
Thrown when this system does not store the current CPU frequency.
|
API Level: 4