mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-25 04:35:59 +10:00
[강운덕] [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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user