Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

GenericMemoryMonitorTask Class Reference
[QtBaseModule]

The GenericMemoryMonitorTask class implements a simple page-fault driven memory monitor task. More...

    #include <GenericMemoryMonitorTask>

Inherits MemoryMonitor.

Public Functions

Additional Inherited Members


Detailed Description

The GenericMemoryMonitorTask class implements a simple page-fault driven memory monitor task.

The GenericMemoryMonitorTask provides a Qt Extended Server Task. Qt Extended Server Tasks are documented in full in the QtopiaServerApplication class documentation.

Task NameGenericMemoryMonitory
InterfacesMemoryMonitor
ServicesNone

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.

ItemDescription
/ServerTasks/GenericMemoryMonitorTask/MemoryLevelSet to the current memory level. Either "Unknown", "Critical", "VeryLow", "Low" or "Normal".
/ServerTasks/GenericMemoryMonitorTask/ChangedTimeThe 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 Qt Extended server and cannot be used by other Qt Extended applications.


Member Function Documentation

MemState GenericMemoryMonitorTask::memoryState () const   [virtual]

Returns the current memory state, ie Critical, Very Low, Low, or Normal.

Reimplemented from MemoryMonitor.

unsigned int GenericMemoryMonitorTask::timeInState () const   [virtual]

Return the time in seconds since the last memory state change.

Reimplemented from MemoryMonitor.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3