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); }
private JObject GetFormattedThread(TracedThreadResult thread) { List <TracedMethodResult> methods = thread.GetMethods(); return(new JObject { { "id", thread.GetID() }, { "time", thread.GetTime() }, { "methods", GetFormattedMethods(methods) } }); }