Ejemplo n.º 1
0
        private XElement GetFormattedThread(TracedThreadResult thread)
        {
            List <TracedMethodResult> methods = thread.GetMethods();
            var formattedThread = new XElement("thread",
                                               new XAttribute("id", thread.GetID()),
                                               new XAttribute("time", thread.GetTime()));

            InsertFormattedMethods(methods, formattedThread);
            return(formattedThread);
        }
Ejemplo n.º 2
0
        private JObject GetFormattedThread(TracedThreadResult thread)
        {
            List <TracedMethodResult> methods = thread.GetMethods();

            return(new JObject
            {
                { "id", thread.GetID() },
                { "time", thread.GetTime() },
                { "methods", GetFormattedMethods(methods) }
            });
        }