Class ProcessMemoryUsage
Definition
- Namespace:
- Tizen.System
- Assembly:
- Tizen.System.Information.dll
- API Level:
- 4
The class for memory information per process.
public class ProcessMemoryUsage
- Inheritance
-
ProcessMemoryUsage
Constructors
View SourceProcessMemoryUsage(IEnumerable<Int32>)
The constructor of ProcessMemoryInformation class.
Declaration
public ProcessMemoryUsage(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 SourceGetPrivateClean(Int32)
Gets the size not modified and available only to that process of a process.
Declaration
public int GetPrivateClean(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
Int32 | The private clean memory size |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceGetPrivateDirty(Int32)
Gets the size modified and available only to that process of a process.
Declaration
public int GetPrivateDirty(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
Int32 | The private dirty memory size |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceGetPss(Int32)
Gets the proportional set size of a process.
Declaration
public int GetPss(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
Int32 | The proportional set size |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceGetRss(Int32)
Gets the resident set size of a process.
Declaration
public int GetRss(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
Int32 | The resident set size |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceGetSharedClean(Int32)
Gets the size not modified and mapped by other processes of a process.
Declaration
public int GetSharedClean(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
Int32 | The shared clean memory size |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceGetSharedDirty(Int32)
Gets the size modified and mapped by other processes of a process.
Declaration
public int GetSharedDirty(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
Int32 | The shared dirty memory size |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceGetVsz(Int32)
Gets the virtual memory size of a process.
Declaration
public int GetVsz(int pid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pid | The process id. |
Returns
Type | Description |
---|---|
Int32 | The virtual memory size |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
API Level: 4
View SourceUpdate(IEnumerable<Int32>)
Update the process memory information 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. |