Class ProcessCpuUsage
Definition
- Namespace:
- Tizen.System
- Assembly:
- Tizen.System.Information.dll
- API Level:
- 3
The class for CPU usage per process.
public class ProcessCpuUsage
- Inheritance
-
ProcessCpuUsage
Constructors
View SourceProcessCpuUsage(IEnumerable<Int32>)
The constructor of ProcessCpuUsage class.
Declaration
public ProcessCpuUsage(IEnumerable<int> pid)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Int32> | pid | List of unique process ids. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
IOException | Thrown when an I/O error occurs while reading from the system or requesting to the resource management daemon. |
OutOfMemoryException | Thrown when the memory is not enough to allocate. |
UnauthorizedAccessException | Thrown when the caller does not have privilege to use this method. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/systemmonitor
Properties
View SourceCount
The number of usage entries.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 4
Methods
View SourceGetSTime(Int32)
Gets the amount of time this process has been scheduled in kernel mode.
Declaration
public uint GetSTime(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
UInt32 | The amount of time |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceGetUTime(Int32)
Gets the amount of time this process has been scheduled in user mode.
Declaration
public uint GetUTime(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
UInt32 | The amount of time |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceUpdate(IEnumerable<Int32>)
Update the process CPU usage to the latest.
Declaration
public void Update(IEnumerable<int> pid)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Int32> | pid | List of unique process ids. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
IOException | Thrown when an I/O error occurs while reading from the system or requesting to the resource management daemon. |
OutOfMemoryException | Thrown when the memory is not enough to allocate. |
UnauthorizedAccessException | Thrown when the caller does not have privilege to use this method. |