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);
        }
Beispiel #2
0
        static internal MethodTracerResult GetResult(MethodTracer methodTracer)
        {
            MethodTracerResult result = new MethodTracerResult();

            result.ClassName   = methodTracer.ClassName;
            result.MethodName  = methodTracer.MethodName;
            result.ElapsedTime = methodTracer.ElapsedTime;
            result.Inner       = new List <MethodTracerResult>();
            foreach (var innerMethodTracer in methodTracer.Inner)
            {
                result.Inner.Add(MethodTracerResult.GetResult(innerMethodTracer));
            }

            return(result);
        }