Change memory_profiler to not force extra runs on profiled functions
Changes related to profiling