Adding mechanism to log memory usage of data service