def format_single_profile_info(profile, minor_version, options, numerical, resources):
    """Helper function for formating performance profile information
    :param object profile: object containing performance profile data
    :param str minor_version: original minor version
    :param list options: list of resource options
    :param dict resources: dictionary containing all resources
    :return: dictionary with performance profile data
    """
    return {
        'registered': not profile._is_raw_profile,
        'commit' : minor_version, 
        'profiled_command': [
            { 'path' : profile.realpath },
            { 'time of collection' : profile.time },
            { 'profile type' : profile.type },
            { 'command' : profile.cmd },
            { 'arguments' : profile.args },
            { 'workload' : profile.workload },
        ],
        'collection_configuration': [
            { 'collector' : profile.collector },
            { 'postprocessors' : profile.postprocessors },
        ],
        'chart_options': options,
        'chart_numerical_options': numerical,
        'resources': resources,
    }