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