Added memory profiling to the profiling flag

Merged Jake Taylor requested to merge hotfix/AddMemoryProfiling into release

Merge request reports