read memory stats from per-heap couters