update collect_profile.py