mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 11:03:12 +00:00
15 lines
373 B
C
15 lines
373 B
C
#ifndef __MALLOC_HOOK_H
|
|
#define __MALLOC_HOOK_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
extern size_t malloc_used_memory(void);
|
|
extern size_t malloc_memory_block(void);
|
|
extern void memory_info_dump(void);
|
|
extern size_t mallctl_int64(const char* name, size_t* newval);
|
|
extern int mallctl_opt(const char* name, int* newval);
|
|
extern void dump_c_mem(void);
|
|
|
|
#endif /* __MALLOC_HOOK_H */
|
|
|