def load_job_timing_summary(path):
    """
    Loads a previously dumped job timing summary.

    Returns {job_name: (num_jobs, total_time_spent_seconds)} map
    """
    num_jobs_and_time_spent_per_func_name = {}
    with open(path, "r") as f:
        # Skip header
        f.readline()
        for l in f.readlines():
            job_name, num_jobs, total_time_spent_seconds, avg_time_spent_seconds = l.strip().split(" ")
            num_jobs_and_time_spent_per_func_name[job_name] = (int(num_jobs), float(total_time_spent_seconds))
    return num_jobs_and_time_spent_per_func_name