瀏覽代碼

dump dmalloc stats on sighup

svn:r10903
Roger Dingledine 18 年之前
父節點
當前提交
0104882e9b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/or/main.c

+ 4 - 0
src/or/main.c

@@ -1249,6 +1249,10 @@ do_hup(void)
 {
 {
   or_options_t *options = get_options();
   or_options_t *options = get_options();
 
 
+#ifdef USE_DMALLOC
+  dmalloc_log_stats();
+#endif
+
   log_notice(LD_GENERAL,"Received reload signal (hup). Reloading config.");
   log_notice(LD_GENERAL,"Received reload signal (hup). Reloading config.");
   if (accounting_is_enabled(options))
   if (accounting_is_enabled(options))
     accounting_record_bandwidth_usage(time(NULL), get_or_state());
     accounting_record_bandwidth_usage(time(NULL), get_or_state());