在feather增加累积扫描长度和次数的统计,但未在maat_stat中输出,只能通过gdb查看。

在gdb中切换到bt后包含thread_rule_monitor函数的线程,在.84上是thread 4,up到thread_rule_monitor栈,执行:
(gdb) p *feather
$2 = {
  scanner = 0x706540,
  total_scan_bytes = 1971931012,
  total_scan_cnt = 13269797
}
This commit is contained in:
zhengchao
2016-05-11 09:53:00 +08:00
parent 7120052dca
commit a1556699c3
2 changed files with 4 additions and 0 deletions

View File

@@ -238,6 +238,8 @@ void maat_stat_output(struct _Maat_feather_t* feather)
feather->fs_column_id[COLUMN_TABLE_HIT_CNT],
FS_OP_SET,
total_hit_cnt);
feather->total_scan_bytes=total_input_bytes;
feather->total_scan_cnt=total_scan_cnt;
FS_passive_output(feather->stat_handle);
return;
}