mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8761 from kegilbert/add-all-stats-config-opt
Add MBED_ALL_STATS_ENABLED to config systempull/8798/head
commit
29b64e15bf
|
@ -72,6 +72,12 @@
|
|||
"value": null
|
||||
},
|
||||
|
||||
"all-stats-enabled": {
|
||||
"macro_name": "MBED_ALL_STATS_ENABLED",
|
||||
"help": "Set to 1 to enable all platform stats. When enabled the functions mbed_stats_*_get returns non-zero data. See mbed_stats.h for more information",
|
||||
"value": null
|
||||
},
|
||||
|
||||
"sys-stats-enabled": {
|
||||
"macro_name": "MBED_SYS_STATS_ENABLED",
|
||||
"help": "Set to 1 to enable system stats. When enabled the function mbed_stats_sys_get returns non-zero data. See mbed_stats.h for more information",
|
||||
|
@ -106,6 +112,7 @@
|
|||
"help": "HTTP URL string for ARM Mbed-OS Error Decode microsite",
|
||||
"value": "\"\\nFor more info, visit: https://armmbed.github.io/mbedos-error/?error=0x%08X\""
|
||||
},
|
||||
|
||||
"cthunk_count_max": {
|
||||
"help": "The maximum CThunk objects used at the same time. This must be greater than 0 and less 256",
|
||||
"value": 8
|
||||
|
|
|
@ -31,13 +31,25 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#ifdef MBED_ALL_STATS_ENABLED
|
||||
|
||||
#ifndef MBED_SYS_STATS_ENABLED
|
||||
#define MBED_SYS_STATS_ENABLED 1
|
||||
#endif
|
||||
#ifndef MBED_STACK_STATS_ENABLED
|
||||
#define MBED_STACK_STATS_ENABLED 1
|
||||
#endif
|
||||
#ifndef MBED_CPU_STATS_ENABLED
|
||||
#define MBED_CPU_STATS_ENABLED 1
|
||||
#endif
|
||||
#ifndef MBED_HEAP_STATS_ENABLED
|
||||
#define MBED_HEAP_STATS_ENABLED 1
|
||||
#endif
|
||||
#ifndef MBED_THREAD_STATS_ENABLED
|
||||
#define MBED_THREAD_STATS_ENABLED 1
|
||||
#endif
|
||||
|
||||
#endif // MBED_ALL_STATS_ENABLED
|
||||
|
||||
/** Maximum memory regions reported by mbed-os memory statistics */
|
||||
#define MBED_MAX_MEM_REGIONS 4
|
||||
|
||||
|
|
Loading…
Reference in New Issue