-
Notifications
You must be signed in to change notification settings - Fork 710
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
Collect stats about sizes of different types of messages sent in JITServer #9752
Conversation
@mpirvu Can you please review my PR? Thank you. |
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.
Please see my inline comments.
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.
Overall it looks good. Most of the time we would not need this code, so to avoid the extra overhead I would prefer to have it protected by an inactive #ifdef.
25e3599
to
bc03e03
Compare
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.
One more request: looking at other usages, ifdefs start in column 0. Also, there is another define called STATS in other part of the code. To be more specific we should call this something like `MESSAGE_SIZE_STATS
I'm keeping track of the size of different types of messages sent using msg.type() and I'm using the class TR_Stats to store avg,min,max and stddev of every type of message. I declared a static array in CommunicationStream.hpp and I'm using that to store in. issue: eclipse-openj9#9708 Signed-off-by: Eman Elsabban <eman.elsaban1@gmail.com>
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.
LGTM
jenkins test sanity plinuxjit jdk11 |
@EmanElsaban Would be able to run this code through some benchmark (AcmeAir would be a good choice) and collect the statistics? |
I'm keeping track of the size of different types of messages sent using msg.type()
and I'm using the class TR_Stats to store avg,min,max and stddev of every type of message.
issue: #9708
Signed-off-by: Eman Elsabban eman.elsaban1@gmail.com