bug #I5PFLG 组件统计耗时未统计后置处理

This commit is contained in:
everywhere.z
2022-09-06 18:45:36 +08:00
parent 4b9825de21
commit 474b52b527

View File

@@ -113,6 +113,9 @@ public abstract class NodeComponent{
}
throw e;
} finally {
//后置处理
self.afterProcess(this.getNodeId(), slot);
stopWatch.stop();
final long timeSpent = stopWatch.getTotalTimeMillis();
LOG.debug("[{}]:component[{}] finished in {} milliseconds",slot.getRequestId(),this.getDisplayName(),timeSpent);
@@ -120,9 +123,6 @@ public abstract class NodeComponent{
//往CmpStep中放入时间消耗信息
cmpStep.setTimeSpent(timeSpent);
//后置处理
self.afterProcess(this.getNodeId(), slot);
// 性能统计
if (ObjectUtil.isNotNull(monitorBus)) {
CompStatistics statistics = new CompStatistics(this.getClass().getSimpleName(), timeSpent);