dateprof.d
来自「Sun Solaris 10 中的 DTrace 组件的源代码。请参看: htt」· D 代码 · 共 27 行
D
27 行
syscall::exec:return,syscall::exece:return/execname == "date"/{ self->start = vtimestamp;}syscall:::entry/self->start/{ /* * We linearly quantize on the current virtual time minus our * process's start time. We divide by 1000 to yield microseconds * rather than nanoseconds. The range runs from 0 to 10 milliseconds * in steps of 100 microseconds; we expect that no date(1) process * will take longer than 10 milliseconds to complete. */ @["system calls over time"] = lquantize((vtimestamp - self->start) / 1000, 0, 10000, 100);}syscall::rexit:entry/self->start/{ self->start = 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?