函数逻辑报告 |
Source Code:lib\dim\dim.c |
Create Date:2022-07-27 08:18:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dim_calc_stats
函数原型:void dim_calc_stats(struct dim_sample *start, struct dim_sample *end, struct dim_stats *curr_stats)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dim_sample * | start | |
struct dim_sample * | end | |
struct dim_stats * | curr_stats |
61 | delta_us等于ktime_us_delta(time, time) |
62 | npkts等于Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u32), pkt_ctr, pkt_ctr) |
63 | nbytes等于Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u32), byte_ctr, byte_ctr) |
65 | ncomps等于Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u32), comp_ctr, comp_ctr) |
68 | 如果非delta_us则返回 |
72 | ytes per msec 等于DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us) |
73 | vents per msec 等于DIV_ROUND_UP(Number of events between DIM iterations.* Causes a moderation of the algorithm run. * USEC_PER_MSEC, delta_us) |
76 | 如果vents per msec 不等于0则atio of completions to events 等于DIV_ROUND_DOWN_ULL(completions per msec * 100, vents per msec ) |
79 | 否则atio of completions to events 等于0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |