Class SystemMemoryUsage
Definition
- Assembly:
- Tizen.System.Information.dll
The class for memory usage information of the system.
C#Copypublic class SystemMemoryUsage
- Inheritance
-
objectSystemMemoryUsage
Constructors
View Source
SystemMemoryUsage()
The constructor of MemoryInformation class. It internally call Update() on constructing an instance.
Declaration
C#Copypublic SystemMemoryUsage()
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | Thrown when an I/O error occurs while reading from the system. |
Properties
View Source
Cache
Cache memory (KiB). To get the latest value, it is recommended to call Update() before it.
Declaration
C#Copypublic int Cache { get; }
Property Value
| Type | Description |
|---|---|
| int |
View Source
Free
Free memory (KiB). To get the latest value, it is recommended to call Update() before it.
Declaration
C#Copypublic int Free { get; }
Property Value
| Type | Description |
|---|---|
| int |
View Source
Swap
Swap memory (KiB). To get the latest value, it is recommended to call Update() before it.
Declaration
C#Copypublic int Swap { get; }
Property Value
| Type | Description |
|---|---|
| int |
View Source
Total
Total memory (KiB). To get the latest value, it is recommended to call Update() before it.
Declaration
C#Copypublic int Total { get; }
Property Value
| Type | Description |
|---|---|
| int |
View Source
Used
Used memory (KiB). To get the latest value, it is recommended to call Update() before it.
Declaration
C#Copypublic int Used { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Declaration
C#Copypublic void Update()
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | Thrown when I/O error occurs while reading from the system. |