-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latency profiling support #3754
Conversation
@@ -45,6 +45,8 @@ | |||
#include <grpc/support/log.h> | |||
#include <grpc/support/useful.h> | |||
|
|||
#include "src/core/profiling/timers.h" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
included but not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -199,11 +199,11 @@ static void tcp_continue_read(grpc_exec_ctx *exec_ctx, grpc_tcp *tcp) { | |||
msg.msg_controllen = 0; | |||
msg.msg_flags = 0; | |||
|
|||
GRPC_TIMER_BEGIN(GRPC_PTAG_RECVMSG, 0); | |||
GPR_TIMER_BEGIN("recvmsg", 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is "id" now 1? The corresponding END still has id==0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the meaning... getting rid of id and making this 'important' -- it turns out to be useful to have important start/end scopes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is only the begin marked as important, or the interval up to the _END? ie, when/why would one wanna set an _END as important?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, nevermind. it's all in the code :)
LGTM. Firing up a round of Jenkins for good measure. |
Green. |
Got this up and running again, redid the script to generate something that's nice to look at in a browser.
Built out some wrappers to publish this stuff to Jenkins.