heap-profiler: printing and saving heapdump