mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
Add jemalloc heap profilling in debug console
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define SKYNET_MALLOC_HOOK_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <lua.h>
|
||||
|
||||
extern size_t malloc_used_memory(void);
|
||||
@@ -9,6 +10,8 @@ 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 bool mallctl_bool(const char* name, bool* newval);
|
||||
extern int mallctl_cmd(const char* name);
|
||||
extern void dump_c_mem(void);
|
||||
extern int dump_mem_lua(lua_State *L);
|
||||
extern size_t malloc_current_memory(void);
|
||||
|
||||
Reference in New Issue
Block a user