Class ProcessCpuUsage
Definition
- Assembly:
- Tizen.System.Information.dll
The class for CPU usage per process.
C#Copypublic class ProcessCpuUsage
- Inheritance
-
objectProcessCpuUsage
Constructors
Declaration
C#Copypublic ProcessCpuUsage(IEnumerable<int> pid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T><int> | pid | List of unique process ids. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when the |
| System.IO.IOException | Thrown when an I/O error occurs while reading from the system or requesting to the resource management daemon. |
| System.OutOfMemoryException | Thrown when the memory is not enough to allocate. |
| System.UnauthorizedAccessException | Thrown when the caller does not have privilege to use this method. |
Properties
Declaration
C#Copypublic int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Declaration
C#Copypublic uint GetSTime(int pid)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pid | The process id. |
Returns
| Type | Description |
|---|---|
| uint | The amount of time |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when the |
Declaration
C#Copypublic uint GetUTime(int pid)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pid | The process id. |
Returns
| Type | Description |
|---|---|
| uint | The amount of time |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when the |
Declaration
C#Copypublic void Update(IEnumerable<int> pid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T><int> | pid | List of unique process ids. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when the |
| System.IO.IOException | Thrown when an I/O error occurs while reading from the system or requesting to the resource management daemon. |
| System.OutOfMemoryException | Thrown when the memory is not enough to allocate. |
| System.UnauthorizedAccessException | Thrown when the caller does not have privilege to use this method. |