public void ResultInFile(TraceResult traceResult, string fileName) { SerializeResult(traceResult).Save(fileName + ".xml"); }
public void AddChild(TraceResult traceResult) { ChildTraceResults.Add(traceResult); }
public void ResultInStream(TraceResult traceResult, Stream stream) { SerializeResult(traceResult).Save(stream); }
public void ResultInStream(TraceResult traceResult, Stream stream) { byte[] text = Encoding.ASCII.GetBytes(SerializeResult(traceResult).ToString()); stream.Write(text, 0, text.Length); }
internal ThreadTraceInfo(TraceResult traceResult) { ThreadRootTraceResult = new List <TraceResult>(); ThreadRootTraceResult.Add(traceResult); StartedTraces = new Stack <TraceResult>(); }
public void ResultInFile(ISerializer serializer, TraceResult result, string fileName) { serializer.ResultInFile(result, fileName); }
public void ResultInConsole(ISerializer serializer, TraceResult result) { serializer.ResultInStream(result, Console.OpenStandardOutput()); }
public Tracer() { dictionary = new ConcurrentDictionary <int, ThreadTracer>(); trResult = new TraceResult(dictionary); }