Fixed memory profiler for check_repo.py