[MemProfile] Fix bugs and generate the data