Class ProcessCpuUsage
Definition
- Assembly:
- Tizen.System.Information.dll
The class for CPU usage per process.
public class ProcessCpuUsage
- Inheritance
-
objectProcessCpuUsage
Constructors
View SourceProcessCpuUsage(IEnumerable<int>)
The constructor of ProcessCpuUsage class.
Declaration
public ProcessCpuUsage(IEnumerable<int> pid)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<><int> | pid | List of unique process ids. |
Properties
View SourceCount
The number of usage entries.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceGetSTime(int)
Gets the amount of time this process has been scheduled in kernel mode.
Declaration
public uint GetSTime(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
uint | The amount of time |
GetUTime(int)
Gets the amount of time this process has been scheduled in user mode.
Declaration
public uint GetUTime(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
uint | The amount of time |
Update(IEnumerable<int>)
Update the process CPU usage to the latest.
Declaration
public void Update(IEnumerable<int> pid)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<><int> | pid | List of unique process ids. |