내 restify.js 응용 프로그램에서 DTrace 프로브를 추적 중입니다 (dtrace 지원을 제공하는 node.js의 http 서버를 복원하십시오). 나는 restify 문서에서 샘플의 DTrace 스크립트를 사용하고 있습니다 :dtrace 스크립트 출력의 의미는 무엇입니까?
#!/usr/sbin/dtrace -s
#pragma D option quiet
restify*:::route-start
{
track[arg2] = timestamp;
}
restify*:::handler-start
/track[arg3]/
{
h[arg3, copyinstr(arg2)] = timestamp;
}
restify*:::handler-done
/track[arg3] && h[arg3, copyinstr(arg2)]/
{
@[copyinstr(arg2)] = quantize((timestamp - h[arg3, copyinstr(arg2)])/1000000);
h[arg3, copyinstr(arg2)] = 0;
}
restify*:::route-done
/track[arg2]/
{
@[copyinstr(arg1)] = quantize((timestamp - track[arg2])/1000000);
track[arg2] = 0;
}
그리고 출력은 다음과 같습니다
use_restifyRequestLogger
value ------------- Distribution ------------- count
-1 | 0
0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
1 | 0
use_validate
value ------------- Distribution ------------- count
-1 | 0
0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
1 | 0
pre
value ------------- Distribution ------------- count
0 | 0
1 |@@@@@@@@@@@@@@@@@@@@ 1
2 |@@@@@@@@@@@@@@@@@@@@ 1
4 | 0
handler
value ------------- Distribution ------------- count
128 | 0
256 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
512 | 0
route_user_read
value ------------- Distribution ------------- count
128 | 0
256 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
512 | 0
내가 value
값 필드 무엇인가 궁금 해서요 - 그것은 무슨 뜻이? 예를 들어 124/256/512가있는 이유는 무엇입니까? 시간/길이를 의미하는 것 같지만 이상한 형식입니다 - 예를 들어 miliseconds
을 표시 할 수 있습니까?