mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-08-04 04:04:54 +00:00
Add support for generating JSON report Passing -g option will generate a JSON file containing size information about all the libraries. It also adds the support to patch source code before calculating size and revert the patch afterwards. This should ideally be not needed as we should be able to control all the configurations via config files. OTA currently defines the logging level in a header file as opposed to taking it from a config file. As a result, we need to patch the header file before calculating the size as we want to turn off logging while calculating size. Later when logging level is moved to a config file, it will not be needed and we will turn off logging in the header file contained with the memory estimator tool. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
33 lines
1.2 KiB
JSON
33 lines
1.2 KiB
JSON
{
|
|
"libraries": [
|
|
{
|
|
"lib_name":"https",
|
|
"size_description":"Code Size of HTTPS (example generated with GCC for ARM Cortex-M)"
|
|
},
|
|
{
|
|
"lib_name":"jobs",
|
|
"size_description":"Code Size of AWS IoT Jobs excluding dependencies (example generated with GCC for ARM Cortex-M)"
|
|
},
|
|
{
|
|
"lib_name":"light-mqtt",
|
|
"size_description":"Code Size of Lightweight MQTT API (example generated with GCC for ARM Cortex-M)"
|
|
},
|
|
{
|
|
"lib_name":"mqtt",
|
|
"size_description":"Code Size of MQTT (example generated with GCC for ARM Cortex-M)"
|
|
},
|
|
{
|
|
"lib_name":"ota-http",
|
|
"size_description":"Code Size of OTA with HTTP excluding dependencies (example generated with GCC for ARM Cortex-M)"
|
|
},
|
|
{
|
|
"lib_name":"ota-mqtt",
|
|
"size_description":"Code Size of OTA with MQTT excluding dependencies (example generated with GCC for ARM Cortex-M)"
|
|
},
|
|
{
|
|
"lib_name":"shadow",
|
|
"size_description":"Code Size of AWS IoT Device Shadow excluding dependencies (example generated with GCC for ARM Cortex-M)"
|
|
}
|
|
]
|
|
}
|