mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-27 15:34:10 -05:00
Disable libphonenumber initialization since it is not used in Harmony but takes around 1.4MB of memory Add heap allocation statistics
42 lines
801 B
C
42 lines
801 B
C
/*
|
|
* @file usermem.h
|
|
* @author Mateusz Piesta (mateusz.piesta@mudita.com)
|
|
* @date 30 lip 2018
|
|
* @brief DYnamic memory allocator for user space
|
|
* @copyright Copyright (C) 2018 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#ifndef USERMEM_H_
|
|
#define USERMEM_H_
|
|
|
|
#include <stdlib.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *usermalloc(size_t xWantedSize);
|
|
|
|
void userfree(void *pv);
|
|
|
|
size_t usermemGetFreeHeapSize(void);
|
|
|
|
size_t usermemGetMinimumEverFreeHeapSize(void);
|
|
|
|
void usermemResetStatistics(void);
|
|
size_t usermemGetAllocationsCount(void);
|
|
size_t usermemGetDeallocationsCount(void);
|
|
size_t usermemGetAllocatedMin(void);
|
|
size_t usermemGetAllocatedMax(void);
|
|
size_t usermemGetAllocatedSum(void);
|
|
|
|
void *userrealloc(void *pv, size_t xWantedSize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* USERMEM_H_ */
|