logging: Add strdup current use to shell cmd

Add the number of strdup buffers currently in use to the
`log strdup_utilization` shell command.

Signed-off-by: Andrew Hedin <andrew.hedin@lairdconnect.com>
This commit is contained in:
Andrew Hedin 2021-06-01 16:04:31 -05:00 committed by Christopher Friedt
commit b52ad8f3e1
3 changed files with 16 additions and 0 deletions

View file

@ -716,6 +716,11 @@ bool log_is_strdup(const void *buf);
*/
void log_free(void *buf);
/**
* @brief Get current number of allocated buffers for string duplicates.
*/
uint32_t log_get_strdup_pool_current_utilization(void);
/**
* @brief Get maximal number of simultaneously allocated buffers for string
* duplicates.