Class SystemCpuUsage

    Definition

    Namespace:
    Tizen.System
    Assembly:
    Tizen.System.Information.dll

    The class for system CPU usage.

    public class SystemCpuUsage
    Inheritance
    object
    SystemCpuUsage

    Constructors

    View Source

    SystemCpuUsage()

    The constructor of SystemCpuUsage class.

    Declaration
    public SystemCpuUsage()
    Exceptions
    Type Condition
    System.IO.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.

    Properties

    View Source

    IoWait

    Time waiting for I/O completion (Percent).

    Declaration
    public double IoWait { get; }
    Property Value
    Type Description
    double
    View Source

    Nice

    Running time of niced user processes (Percent).

    Declaration
    public double Nice { get; }
    Property Value
    Type Description
    double
    View Source

    ProcessorCount

    The number of processors.

    Declaration
    public int ProcessorCount { get; }
    Property Value
    Type Description
    int
    View Source

    System

    Running time of kernel processes (Percent).

    Declaration
    public double System { get; }
    Property Value
    Type Description
    double
    View Source

    User

    Running time of un-niced user processes (Percent).

    Declaration
    public double User { get; }
    Property Value
    Type Description
    double

    Methods

    View Source

    GetCurrentFrequency(int)

    Gets the current frequency of the processor.

    Declaration
    public int GetCurrentFrequency(int coreId)
    Parameters
    Type Name Description
    int coreId

    The index (from 0) of the CPU core that you want to know the frequency of.

    Returns
    Type Description
    int

    The current frequency(MHz) of processor.

    Exceptions
    Type Condition
    System.ArgumentException

    Thrown when the coreId is invalid.

    View Source

    GetMaxFrequency(int)

    Gets the max frequency of the processor.

    Declaration
    public int GetMaxFrequency(int coreId)
    Parameters
    Type Name Description
    int coreId

    The index (from 0) of CPU core that you want to know the frequency of.

    Returns
    Type Description
    int

    The max frequency(MHz) of processor.

    Exceptions
    Type Condition
    System.ArgumentException

    Thrown when the coreId is invalid.

    View Source

    Update()

    Update the system CPU usage to the latest.

    Declaration
    public void Update()
    Exceptions
    Type Condition
    System.IO.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.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX