This class can be added to any BB10 headless app to retrieve Heap Memory usage at any time