added method for getting memory usage information