Class ProcessCpuUsage

Definition

Namespace:
Tizen.System
Assembly:
Tizen.System.Information.dll
API Level:
3

The class for CPU usage per process.

C#
Copy
public class ProcessCpuUsage : object
Inheritance
ProcessCpuUsage

Constructors

View Source

ProcessCpuUsage(IEnumerable<Int32>)

The constructor of ProcessCpuUsage class.

Declaration
C#
Copy
public ProcessCpuUsage(IEnumerable<int> pid)
Parameters
Type Name Description
IEnumerable<Int32> pid

List of unique process ids.

API Level: 3

Properties

View Source

Count

The number of usage entries.

Declaration
C#
Copy
public int Count { get; }
Property Value
Type Description
Int32
API Level: 4

Methods

View Source

GetSTime(Int32)

Gets the amount of time this process has been scheduled in kernel mode.

Declaration
C#
Copy
public uint GetSTime(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
UInt32

The amount of time pid has been scheduled in kernel mode (clock ticks).

API Level: 4
View Source

GetUTime(Int32)

Gets the amount of time this process has been scheduled in user mode.

Declaration
C#
Copy
public uint GetUTime(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
UInt32

The amount of time pid has been scheduled in user mode (clock ticks).

API Level: 4
View Source

Update(IEnumerable<Int32>)

Update the process CPU usage to the latest.

Declaration
C#
Copy
public void Update(IEnumerable<int> pid)
Parameters
Type Name Description
IEnumerable<Int32> pid

List of unique process ids.

API Level: 3

Extension Methods