add debug api to show current service c memory

This commit is contained in:
Cloud Wu
2015-12-17 22:13:51 +08:00
parent 9d6bde01a3
commit 20610723a1
4 changed files with 31 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ 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);
extern int dump_mem_lua(lua_State *L);
extern size_t malloc_current_memory(void);
#endif /* SKYNET_MALLOC_HOOK_H */