在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:
@@ -348,6 +348,8 @@ struct _Maat_feather_t
|
|||||||
mcore_long_t inner_mid_cnt;
|
mcore_long_t inner_mid_cnt;
|
||||||
mcore_long_t hit_cnt;
|
mcore_long_t hit_cnt;
|
||||||
mcore_long_t thread_call_cnt;//size indicate by scan_thread_num,
|
mcore_long_t thread_call_cnt;//size indicate by scan_thread_num,
|
||||||
|
long long total_scan_bytes;
|
||||||
|
long long total_scan_cnt;
|
||||||
};
|
};
|
||||||
struct _maat_garbage_t
|
struct _maat_garbage_t
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -238,6 +238,8 @@ void maat_stat_output(struct _Maat_feather_t* feather)
|
|||||||
feather->fs_column_id[COLUMN_TABLE_HIT_CNT],
|
feather->fs_column_id[COLUMN_TABLE_HIT_CNT],
|
||||||
FS_OP_SET,
|
FS_OP_SET,
|
||||||
total_hit_cnt);
|
total_hit_cnt);
|
||||||
|
feather->total_scan_bytes=total_input_bytes;
|
||||||
|
feather->total_scan_cnt=total_scan_cnt;
|
||||||
FS_passive_output(feather->stat_handle);
|
FS_passive_output(feather->stat_handle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user