Add heap dump and thread dump