Change memory snapshot logic

Andrey Veltischev requested to merge andrey/mem_snapshot into master

Merge request reports