mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
malloc hook for jemalloc and c memory info dump
This commit is contained in:
13
skynet-src/malloc_hook.h
Normal file
13
skynet-src/malloc_hook.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#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 */
|
||||
|
||||
Reference in New Issue
Block a user