public static IConcurrencyResults FindSlowestSegment(this IConcurrencyResults r) { return(r.GetSegmentStatsRecursively().OrderByDescending(p => p.Item2.ParallelExclusiveMs.Avg).First().Item1); }
public static IConcurrencyResults FindLeastConcurrentSegment(this IConcurrencyResults r) { return(r.GetSegmentStatsRecursively().OrderByDescending(p => p.Item2.ParallelConcurrencyPercent).First().Item1); }