REST api to dump a heap memory profile.