rtime.d

来自「Sun Solaris 10 中的 DTrace 组件的源代码。请参看: htt」· D 代码 · 共 18 行

D
18
字号
syscall::read:entry{	self->t = timestamp;}syscall::read:return/self->t != 0/{	printf("%d/%d spent %d nsecs in read(2)\n",	    pid, tid, timestamp - self->t);		/*	 * We're done with this thread-local variable; assign zero to it to	 * allow the DTrace runtime to reclaim the underlying storage.	 */	self->t = 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?