A while ago I improved the performance of a GitLab CI/CD job using a Ruby profiler, rbspy.