Class ProcessMemoryUsage
Definition
- Assembly:
- Tizen.System.Information.dll
The class for memory information per process.
C#Copypublic class ProcessMemoryUsage
- Inheritance
-
objectProcessMemoryUsage
Constructors
Declaration
C#Copypublic ProcessMemoryUsage(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
GetPrivateClean(int)
Gets the size not modified and available only to that process of a process.
Declaration
C#Copypublic int GetPrivateClean(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
int | The private clean memory size |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
GetPrivateDirty(int)
Gets the size modified and available only to that process of a process.
Declaration
C#Copypublic int GetPrivateDirty(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
int | The private dirty memory size |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
Declaration
C#Copypublic int GetPss(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
int | The proportional set size |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
Declaration
C#Copypublic int GetRss(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
int | The resident set size |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
GetSharedClean(int)
Gets the size not modified and mapped by other processes of a process.
Declaration
C#Copypublic int GetSharedClean(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
int | The shared clean memory size |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
Declaration
C#Copypublic int GetSharedDirty(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
int | The shared dirty memory size |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
Declaration
C#Copypublic int GetVsz(int pid)
Parameters
Type | Name | Description |
---|---|---|
int | pid | The process id. |
Returns
Type | Description |
---|---|
int | The virtual memory size |
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. |