public void ResultInFile(TraceResult traceResult, string fileName)
 {
     SerializeResult(traceResult).Save(fileName + ".xml");
 }
Example #2
0
 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);
 }
Example #5
0
 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());
 }
Example #8
0
 public Tracer()
 {
     dictionary = new ConcurrentDictionary <int, ThreadTracer>();
     trResult   = new TraceResult(dictionary);
 }