diff --git a/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java b/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java index 94f6113..ec26277 100644 --- a/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java +++ b/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java @@ -932,6 +932,9 @@ traceCurThread2 = traceCurThread; traceCurTime = methodEntry; traceCurThread = threadId; + } else if (traceCurTime2 == -1 || traceCurTime2 > methodEntry) { + traceCurTime2 = methodEntry; + traceCurThread2 = threadId; } } else { threadCurPoints.put(threadId, null); @@ -1039,6 +1042,9 @@ traceLastThread2 = traceLastThread; traceLastTime = methodEntry; traceLastThread = threadId; + } else if (traceLastTime2 < methodEntry) { + traceLastTime2 = methodEntry; + traceLastThread2 = threadId; } } else { threadLastPoints.put(threadId, null);