Esempio n. 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);
     }
 }
        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);
        }