Created
October 11, 2019 06:11
-
-
Save udzura/b3ded7aa5a830481c30d1c7ee36a2af7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uprobe:/usr/sbin/nginx:ngx_http_read_request_header /!@start[arg1]/ | |
{ | |
printf("[%ld] Passed: %s (%p)\n", tid, probe, arg1); | |
@start[arg1] = nsecs | |
} | |
uprobe:/usr/sbin/nginx:ngx_http_finalize_connection /@start[arg1]/ | |
{ | |
@reqtime = hist(nsecs - @start[arg1]); | |
delete(@start[arg1]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment