-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add debug log of the measurement result details. #121
Conversation
Refactor the serializer of hessian and protobuf. (sofastack#116)
Codecov Report
@@ Coverage Diff @@
## master #121 +/- ##
============================================
+ Coverage 65.01% 65.14% +0.12%
- Complexity 646 652 +6
============================================
Files 271 271
Lines 11587 11618 +31
Branches 1953 1957 +4
============================================
+ Hits 7533 7568 +35
+ Misses 3082 3080 -2
+ Partials 972 970 -2
Continue to review full report at Codecov.
|
List<InvocationStat> stats = measureModel.getInvocationStats(); | ||
List<MeasureResultDetail> details = measureResult.getAllMeasureResultDetails(); | ||
|
||
if (!LOGGER.isInfoEnabled(appName)) { |
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.
如果这里提前返回的话,把这个移到最前面去。
info.append(","); | ||
} | ||
if (stats.size() > 0) { | ||
info = new StringBuilder(info.substring(0, info.lastIndexOf(","))); |
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.
这个是要删最后一个字符吗? 直接 info.deleteCharAt(info.length()-1)
|
||
public static void main(String[] args) { | ||
new ServiceHorizontalMeasureStrategy().logMeasureResult(null, 0, 0, 0, 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.
删掉main() 方法
Motivation:
Print the measurement result details for each time window.For example:
Modification:
add method ‘com.alipay.sofa.rpc.client.aft.impl.ServiceHorizontalMeasureStrategy#logMeasureResult’
Result:
Fixes #109 .