public static void Print(Reporter reporter, IEnumerable<PerfTraceThreadContext> contexts) { foreach (var threadContext in contexts) { Print(reporter, new[] { threadContext.Root }, threadContext.Root, null); } }
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); } }
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); } }