@@ -22,7 +22,7 @@ private class TaskStatistic : NodeStatistic
2222 private readonly DoubleWritesAnalyzer doubleWritesAnalyzer ;
2323 private readonly ResolveAssemblyReferenceAnalyzer resolveAssemblyReferenceAnalyzer ;
2424 private readonly CppAnalyzer cppAnalyzer ;
25- private readonly Dictionary < string , TaskStatistic > taskDurations = new ( ) ;
25+ private readonly Dictionary < string , TaskStatistic > taskDurations = new ( ) ;
2626 private readonly List < Folder > analyzerReports = new List < Folder > ( ) ;
2727 private readonly List < Folder > generatorReports = new List < Folder > ( ) ;
2828 private int index ;
@@ -233,15 +233,16 @@ string Intern(string text)
233233 var taskItem = new Item
234234 {
235235 Name = Intern ( kvp . Key ) ,
236- Text = Intern ( $ "{ TextUtilities . DisplayDuration ( kvp . Value . Duration ) } , count= { kvp . Value . Count } ")
236+ Text = Intern ( $ "{ TextUtilities . DisplayDuration ( kvp . Value . Duration ) } , { kvp . Value . Count } calls. ")
237237 } ;
238- var parentDurations = kvp . Value . ChildNodes . OrderByDescending ( kv => kv . Value . Duration ) . Take ( 10 ) ;
239- foreach ( var parentDuration in parentDurations )
238+ var childNodes = kvp . Value . ChildNodes . OrderByDescending ( kv => kv . Value . Duration ) . Take ( 10 ) ;
239+ foreach ( var durationNodes in childNodes )
240240 {
241241 taskItem . AddChild ( new Item
242242 {
243- Name = Intern ( parentDuration . Key ) ,
244- Text = Intern ( $ "{ TextUtilities . DisplayDuration ( parentDuration . Value . Duration ) } , count={ parentDuration . Value . Count } ") } ) ;
243+ Name = Intern ( durationNodes . Key ) ,
244+ Text = Intern ( $ "{ TextUtilities . DisplayDuration ( durationNodes . Value . Duration ) } , { durationNodes . Value . Count } calls.")
245+ } ) ;
245246 }
246247 top10Tasks . AddChild ( taskItem ) ;
247248 }
0 commit comments