public void StopTrace() { ThreadTracer threadTracer = GetCurrentThreadTracer(); threadTracer.StopTrace(); int currentThreadId = Thread.CurrentThread.ManagedThreadId; ThreadInfo threadInfo = GetThreadInfoById(currentThreadId); if (threadInfo == null) { List <MethodInfo> threadMethodInfos = threadTracer.GetThreadMethodList(); threadInfo = new ThreadInfo(currentThreadId, threadMethodInfos); lock (Locker) { ThreadsInfo.Add(threadInfo); } } }
public void StopTrace() { ThreadTracer threadTracer = GetCurrentThreadTracer(); threadTracer.StopTrace(); }
public void StopTrace() { ThreadTracer currThreadTracer = AddOrGetThreadTracer(Thread.CurrentThread.ManagedThreadId); currThreadTracer.StopTrace(); }