1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #5381 from mpg/benchmark-ecc-heap

Improve benchmarking of ECC heap usage
This commit is contained in:
Gilles Peskine
2022-04-22 16:43:11 +02:00
committed by GitHub
4 changed files with 50 additions and 38 deletions

View File

@ -522,6 +522,12 @@ void mbedtls_memory_buffer_alloc_status( void )
}
}
void mbedtls_memory_buffer_alloc_count_get( size_t *alloc_count, size_t *free_count )
{
*alloc_count = heap.alloc_count;
*free_count = heap.free_count;
}
void mbedtls_memory_buffer_alloc_max_get( size_t *max_used, size_t *max_blocks )
{
*max_used = heap.maximum_used;