add memory profiler