瀏覽代碼

memlog introduced

Jiri Kuthan 23 年之前
父節點
當前提交
609ada4201
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 3 0
      globals.h
  2. 2 0
      main.c

+ 3 - 0
globals.h

@@ -70,4 +70,7 @@ extern int reply_to_via;
 
 
 extern int is_main;
 extern int is_main;
 
 
+/* debugging level for dumping memory status */
+extern int memlog;
+
 #endif
 #endif

+ 2 - 0
main.c

@@ -207,6 +207,8 @@ int log_stderr = 0;
 int check_via =  0;        
 int check_via =  0;        
 /* shall use stateful synonym branches? faster but not reboot-safe */
 /* shall use stateful synonym branches? faster but not reboot-safe */
 int syn_branch = 1;
 int syn_branch = 1;
+/* debugging level for memory stats */
+int memlog = L_DBG;
 /* should replies include extensive warnings? by default yes,
 /* should replies include extensive warnings? by default yes,
    good for trouble-shooting
    good for trouble-shooting
 */
 */