Ejemplo n.º 1
0
 public static void Print(Reporter reporter, IEnumerable<PerfTraceThreadContext> contexts)
 {
     foreach (var threadContext in contexts)
     {
         Print(reporter, new[] { threadContext.Root }, threadContext.Root, null);
     }
 }
Ejemplo n.º 2
0
 private static void Print(Reporter reporter, IEnumerable<PerfTraceEvent> events, PerfTraceEvent root, PerfTraceEvent parent, int padding = 0)
 {
     foreach (var e in events)
     {
         if (e.Duration < _minDuration)
         {
             continue;
         }
         reporter.Write(new string(' ', padding));
         reporter.WriteLine(FormatEvent(e, root, parent));
         Print(reporter, e.Children, root, e, padding + 2);
     }
 }
Ejemplo n.º 3
0
 private static void HandleCompilerOutputLine(string line, ProjectContext context, List<DiagnosticMessage> diagnostics, Reporter reporter)
 {
     var diagnostic = ParseDiagnostic(context.ProjectDirectory, line);
     if (diagnostic != null)
     {
         diagnostics.Add(diagnostic);
     }
     else
     {
         reporter.WriteLine(line);
     }
 }