[강운덕] [LUCYSUS-1744] SubSpan을 Event로 변경함.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1270 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2013-02-28 07:37:22 +00:00
parent c468844a19
commit ab9690dbda
4 changed files with 14 additions and 11 deletions
@@ -5,6 +5,7 @@ import java.util.List;
import com.profiler.Agent;
import com.profiler.common.ServiceType;
import com.profiler.common.dto.thrift.Event;
/**
* Span represent RPC
@@ -169,12 +170,12 @@ public class SubSpan implements Thriftable {
return sb.toString();
}
public com.profiler.common.dto.thrift.SubSpan toThrift() {
public Event toThrift() {
return toThrift(false);
}
public com.profiler.common.dto.thrift.SubSpan toThrift(boolean child) {
com.profiler.common.dto.thrift.SubSpan subSpan = new com.profiler.common.dto.thrift.SubSpan();
public Event toThrift(boolean child) {
Event subSpan = new Event();
long parentSpanStartTime = parentSpan.getStartTime();
subSpan.setStartElapsed((int) (startTime - parentSpanStartTime));