add memory tracking

This commit is contained in:
Patrick Lipka 2025-08-08 12:07:38 +02:00
parent 068862dc1e
commit 7a99e5c671
3 changed files with 4 additions and 3 deletions

View File

@ -25,4 +25,3 @@ void __cyg_profile_func_exit(void *this_fn, void *call_site){
rvprof_finalize();
}
}

View File

@ -133,9 +133,9 @@ extern rvprof_context_t g_rvprof;
// internal API
// memory management
// memory management, used to track memory overhead
void* rvprof_malloc(size_t size);
void* rvprof_reallovc(void* ptr, size_t old_size, size_t new_size);
void* rvprof_realloc(void* ptr, size_t old_size, size_t new_size);
void rvprof_free(void* ptr, size_t size);
// dynamic array management

2
src/rvprof_memory.c Normal file
View File

@ -0,0 +1,2 @@
#include "rvprof_internal.h"