![]() |
Home · All Classes · Grouped Classes · Annotated · Functions | ![]() |
The GenericMemoryMonitorTask class implements a simple page-fault driven memory monitor task. More...
#include <GenericMemoryMonitorTask>
Inherits MemoryMonitor.
The GenericMemoryMonitorTask class implements a simple page-fault driven memory monitor task.
The GenericMemoryMonitorTask provides a Qtopia Server Task. Qtopia Server Tasks are documented in full in the QtopiaServerApplication class documentation.
Task Name | GenericMemoryMonitory |
Interfaces | MemoryMonitor |
Services | None |
The GenericMemoryMonitorTask uses a simple page-fault rate driven algorithm to approximate the memory "pressure" on the device.
The GenericMemoryMonitorTask task exports the following informational value space items.
Item | Description |
---|---|
/ServerTasks/GenericMemoryMonitorTask/MemoryLevel | Set to the current memory level. Either "Unknown", "Critical", "VeryLow", "Low" or "Normal". |
/ServerTasks/GenericMemoryMonitorTask/ChangedTime | The date and time at which the memory level last changed. |
As polling is used to sample memory usage information from the /c {/proc} filesystem, the GenericMemoryMonitorTask should generally be replaced by system integrators with a more efficient, system specific mechanism.
This class is part of the Qtopia server and cannot be used by other Qtopia applications.
Returns the current memory state, ie Critical, Very Low, Low, or Normal.
Reimplemented from MemoryMonitor.
Return the time in seconds since the last memory state change.
Reimplemented from MemoryMonitor.
Copyright © 2008 Nokia | Trademarks | Qtopia 4.3.3 |