def absolute_to_relative_timestamps(profile):
    """Change timestamps from absolute to relative times.

    :param profile: a memory profile dictionary from memory_profiler
    """
    timestamps = profile['timestamp']
    baseline = timestamps[0]
    profile['timestamp'][:] = [x - baseline for x in timestamps]
    return profile