[강운덕] [LUCYSUS-1744] 비동기 메시지일때도 event를 모아서 io에 flush하도록 수정.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1053 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2012-12-21 03:02:50 +00:00
parent 6b34149999
commit 895aec01ef
10 changed files with 86 additions and 75 deletions
+1 -6
View File
@@ -146,15 +146,10 @@ public class Span implements Thriftable {
List<SubSpan> subSpanList = this.getSubSpanList();
if (subSpanList != null && subSpanList.size() != 0) {
SubSpan first = null;
List<com.profiler.common.dto.thrift.SubSpan> tSubSpanList = new ArrayList<com.profiler.common.dto.thrift.SubSpan>(subSpanList.size());
for (SubSpan subSpan : subSpanList) {
com.profiler.common.dto.thrift.SubSpan tSubSpan = subSpan.toThrift(true);
if (first == null) {
// 첫번째 subSpan에는 sequence를 마크한다.
tSubSpan.setSequence(subSpan.getSequence());
first = subSpan;
}
tSubSpanList.add(tSubSpan);
}
span.setSubSpanList(tSubSpanList);