mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
malloc: Keep some stats and dump them at process exit if LIBC_DUMP_MALLOC_STATS is set
Very bare-bones and barely useful. Can go away once the perf_event-based malloc tracking is further along.
This commit is contained in:
parent
c44d2515b4
commit
22f701d657
Notes:
sideshowbarker
2024-07-19 03:30:03 +09:00
Author: https://github.com/nico
Commit: 22f701d657
Pull-request: https://github.com/SerenityOS/serenity/pull/3186
3 changed files with 72 additions and 2 deletions
|
@ -41,6 +41,7 @@ __BEGIN_DECLS
|
|||
__attribute__((malloc)) __attribute__((alloc_size(1))) void* malloc(size_t);
|
||||
__attribute__((malloc)) __attribute__((alloc_size(1, 2))) void* calloc(size_t nmemb, size_t);
|
||||
size_t malloc_size(void*);
|
||||
void serenity_dump_malloc_stats(void);
|
||||
void free(void*);
|
||||
__attribute__((alloc_size(2))) void* realloc(void* ptr, size_t);
|
||||
char* getenv(const char* name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue