Monitor
Monitoring Class for monitoring the Engine during runtime. Usage can be configured using configuration file. Uses a single thread.
cpuTotalList
List for measurements of used CPU Time.
memResList
List for measurements of resident memory usage.
memShareList
List for measurements of shared memory usage.
memVirtList
List for measurements of virtual memory usage.
pid
Current PID of the process.
Constructor to initialize all needed variables.
memResAverage
memShareAverage
Function to calulate the shared memory used in average.
memVirtAverage
Function to calulate the virtual memory used in average.
run
A maesurement is done every 100ms and the statistics are updated.
stopExec
Method to stop the Monitoring task externally. Used from the main class.
updateStats
Updating the statistics (shared /virtual/ resident memory and CPU). New measurement is appended to appropriate list.