private static string GetLongNameForThreadClassification(CompilationThreadKind kind) { if (kind == CompilationThreadKind.Foreground) { return("Foreground"); } else if (kind == CompilationThreadKind.MulticoreJitBackground) { return("Multicore JIT Background"); } else if (kind == CompilationThreadKind.TieredCompilationBackground) { return("Tiered Compilation Background"); } else { throw new ArgumentException("Unknown CompilationThreadKind: " + kind); } }
private static string FormatThreadingModelTableRow(CompilationThreadKind kind, long count, double jitTimeMsec, TraceProcess stats, TraceLoadedDotNetRuntime runtime) { return(FormatThreadingModelTableRow(GetLongNameForThreadClassification(kind), count, jitTimeMsec, stats, runtime)); }