Bare C code
This category allows to analyze any C source code without any support file (i.e. ARXML or HTML report). The main differences with the other categories is that the developer is responsible for:
wrapping the function to analyze, with a main function that gets the inputs, provide them to the function and reads the output
specify the function to analyze
specify the periodicity of the function
HPROF generation command for bare C code
For the bare C code example, the utility expects to have all the source files available for the compilation specified with -c and -I flags, and will not generate any RTE stub.
python hux-autosar-sil.py generate_hprof --bare \
-r <function_to_analyze> \
-p 10 \
-I <library_folder_to_include> \
-I <library_folder_2_to_include> \
-c <library_folder_to_include> \
-c <library_folder_2_to_include> \
--aws \
-z <sil_archive_name> \
-b <aws_bucket_name> \
-ho <hprof_output_file>
It is mandatory to specify the name of the function to analyze with the -r flag. Furthermore, it is possible to specify the periodicity of the function to analyze, expressed in milliseconds, with the -p flag.
Additionally, it is possible to specify additional compile flags with the -q flag. These flags will be used during the compilation step.
The generated <custom_name>.hprof is the output of the performance analysis. Upload the report to Huxelerate Platform to get the final report.