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:
parent
185545e9f4
commit
b52ad8f3e1
3 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue