コード例 #1
0
 public TraceResult(ConcurrentDictionary <int, ThreadTracer> threadTracers)
 {
     ThreadTracerResults = new Dictionary <int, ThreadTracerResult>();
     foreach (var threadTracer in threadTracers)
     {
         ThreadTracerResults[threadTracer.Key] = ThreadTracerResult.GetResult(threadTracer.Value);
     }
 }
コード例 #2
0
        static internal ThreadTracerResult GetResult(ThreadTracer threadTracer)
        {
            ThreadTracerResult result = new ThreadTracerResult();

            result.ExtremeMethodResults = new List <MethodTracerResult>();
            foreach (var extremeMethod in threadTracer.ExtremeMethods)
            {
                result.ExtremeMethodResults.Add(MethodTracerResult.GetResult(extremeMethod));
            }
            result.ThreadId    = threadTracer.ThreadId;
            result.TimeElapsed = threadTracer.TimeElapsed;
            return(result);
        }