Add memory profiler format, implementation and associated utilities