internals for monitoring heap memory usage (calls to malloc/calloc/realloc/free)  
More...
internals for monitoring heap memory usage (calls to malloc/calloc/realloc/free) 
- Author
 - Mikolai Gütschow mikol.nosp@m.ai.g.nosp@m.uetsc.nosp@m.how@.nosp@m.tu-dr.nosp@m.esde.nosp@m.n.de 
 
◆ malloc_monitor_add()
      
        
          | void malloc_monitor_add  | 
          ( | 
          void *  | 
          ptr,  | 
        
        
           | 
           | 
          size_t  | 
          size,  | 
        
        
           | 
           | 
          uinttxtptr_t  | 
          pc,  | 
        
        
           | 
           | 
          char *  | 
          func_prefix  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Record malloc/calloc/realloc call increasing heap usage. 
- Parameters
 - 
  
    | [in] | ptr | pointer to newly allocated memory  | 
    | [in] | size | size of newly allocated memory  | 
    | [in] | pc | PC of calling function  | 
    | [in] | func_prefix | prefix identifying memory function, one of "m","c","re"  | 
  
   
 
 
◆ malloc_monitor_mv()
      
        
          | void malloc_monitor_mv  | 
          ( | 
          void *  | 
          ptr_old,  | 
        
        
           | 
           | 
          void *  | 
          ptr_new,  | 
        
        
           | 
           | 
          size_t  | 
          size_new,  | 
        
        
           | 
           | 
          uinttxtptr_t  | 
          pc  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Record realloc call either increasing or decreasing heap usage. 
- Parameters
 - 
  
    | [in] | ptr_old | pointer to previously allocated memory  | 
    | [in] | ptr_new | pointer to newly allocated memory  | 
    | [in] | size_new | size of newly allocated memory  | 
    | [in] | pc | PC of calling function  | 
  
   
 
 
◆ malloc_monitor_rm()
Record free/realloc call decreasing heap usage. 
- Parameters
 - 
  
    | [in] | ptr | pointer to memory that is being freed  | 
    | [in] | pc | PC of calling function  |