add memprofile for comet
add memprofile for comet