[MemProfile] Add lifetime calculation