[강운덕] [LUCYSUS-1744] span 으로 start, end time을 이동시킴.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@877 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2012-11-20 04:53:00 +00:00
parent 3b49bc4ca6
commit 94573269f9
11 changed files with 70 additions and 35 deletions
+12 -6
View File
@@ -71,14 +71,14 @@ public final class Trace {
public AsyncTrace createAsyncTrace() {
// 경우에 따라 별도 timeout 처리가 있어야 될수도 있음.
TraceID nextTraceId = getNextTraceId();
Span span = new Span(nextTraceId, null, null);
Span span = new Span(nextTraceId);
AsyncTrace asyncTrace = new AsyncTrace(span);
asyncTrace.setDataSender(this.getDataSender());
return asyncTrace;
}
private StackFrame createStackFrame(TraceID nextId, int stackId) {
Span span = new Span(nextId, null, null);
Span span = new Span(nextId);
StackFrame stackFrame = new StackFrame(span);
stackFrame.setStackFrameId(stackId);
return stackFrame;
@@ -93,16 +93,22 @@ public final class Trace {
stackFrame.markBeforeTime();
}
// public void attachObject(Object object) {
// StackFrame stackFrame = getCurrentStackFrame();
// stackFrame.attachObject(object);
// }
public void markAfterTime() {
StackFrame stackFrame = getCurrentStackFrame();
stackFrame.markAfterTime();
}
public long afterTime() {
StackFrame context = getCurrentStackFrame();
return context.afterTime();
}
// public void attachObject(Object object) {
// StackFrame stackFrame = getCurrentStackFrame();
// stackFrame.attachObject(object);
// }
public void traceBlockBegin(int stackId) {
TraceID nextId = getNextTraceId();
callStack.push();