📄 interval.d
字号:
#pragma D option quietsdt:::callout-start{ self->callout = ((callout_t *)arg0)->c_func;}fbt::timeout:entry/self->callout && arg2 <= 100/{ /* * In this case, we are most interested in interval timeout(9F)s that * are short. We therefore do a linear quantization from 0 ticks to * 100 ticks. The system clock's frequency ? set by the variable * "hz" ? defaults to 100, so 100 system clock ticks is one second. */ @callout[self->callout] = lquantize(arg2, 0, 100);}sdt:::callout-end{ self->callout = NULL;}END{ printa("%a\n%@d\n\n", @callout);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -