9 instantiations of ProfiledLocation
Microsoft.Build (6)
Evaluation\Profiler\EvaluationProfiler.cs (2)
146previousTimeSpent = new ProfiledLocation(TimeSpan.Zero, TimeSpan.Zero, 0); 149var updatedTimeSpent = new ProfiledLocation(
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1756return new ProfiledLocation(inclusiveTime, exclusiveTime, numberOfHits);
Logging\ProfilerLogger.cs (2)
163.Aggregate(new ProfiledLocation(), 271return new ProfiledLocation(
LogMessagePacketBase.cs (1)
1569var profiledLocation = new ProfiledLocation(
Microsoft.Build.Engine.UnitTests (3)
BuildEventArgsSerialization_Tests.cs (3)
796new ProfiledLocation(TimeSpan.FromSeconds(1), TimeSpan.FromHours(2), 1) 800new ProfiledLocation(TimeSpan.FromSeconds(1), TimeSpan.FromHours(2), 2) 804new ProfiledLocation(TimeSpan.FromSeconds(1), TimeSpan.FromHours(2), 2)
42 references to ProfiledLocation
Microsoft.Build (35)
Evaluation\Profiler\EvaluationLocationMarkdownPrettyPrinter.cs (1)
27internal override void AppendLocation(StringBuilder stringBuilder, TimeSpan totalTime, EvaluationLocation evaluationLocation, ProfiledLocation profiledLocation)
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (2)
26internal abstract void AppendLocation(StringBuilder stringBuilder, TimeSpan totalTime, EvaluationLocation evaluationLocation, ProfiledLocation profiledLocation); 85protected void AppendDefaultLocationWithSeparator(StringBuilder stringBuilder, TimeSpan totalTime, EvaluationLocation evaluationLocation, ProfiledLocation profiledLocation, string separator)
Evaluation\Profiler\EvaluationLocationTabSeparatedPrettyPrinter.cs (1)
26internal override void AppendLocation(StringBuilder stringBuilder, TimeSpan totalTime, EvaluationLocation evaluationLocation, ProfiledLocation profiledLocation)
Evaluation\Profiler\EvaluationProfiler.cs (4)
23private readonly Dictionary<EvaluationLocation, ProfiledLocation> _timeSpent = new Dictionary<EvaluationLocation, ProfiledLocation>(); 144if (!_evaluationProfiler.ProfiledResult.Value.ProfiledLocations.TryGetValue(Location, out var previousTimeSpent)) 149var updatedTimeSpent = new ProfiledLocation(
Evaluation\Profiler\ProfilerResultPrettyPrinter.cs (2)
59var time = pair.Value; 75var time = pair.Value;
Logging\BinaryLogger\BuildEventArgsReader.cs (3)
718var d = new Dictionary<EvaluationLocation, ProfiledLocation>(count); 722var profiledLocation = ReadProfiledLocation(); 1750private ProfiledLocation ReadProfiledLocation()
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1311private void Write(ProfiledLocation e)
Logging\ProfilerLogger.cs (16)
34private Dictionary<EvaluationLocation, ProfiledLocation> _aggregatedLocations = null; 128new Dictionary<EvaluationLocation, ProfiledLocation>(EvaluationLocationIdAgnosticComparer.Singleton); 161var aggregatedGlobs = _aggregatedLocations.Keys 176IDictionary<EvaluationLocation, ProfiledLocation> aggregatedLocations, 177KeyValuePair<EvaluationLocation, ProfiledLocation> pairToMerge) 179ProfiledLocation existingProfiledLocation; 184var profiledLocation = AggregateProfiledLocation(existingProfiledLocation, pairToMerge.Value); 215private static Dictionary<EvaluationLocation, ProfiledLocation> PruneSmallItems( 216IDictionary<EvaluationLocation, ProfiledLocation> aggregatedLocations) 218var result = new Dictionary<EvaluationLocation, ProfiledLocation>(); 222pair => new KeyValuePair<EvaluationLocation, ProfiledLocation>(pair.Key, pair.Value)); 240private static long? FindBigEnoughParentId(IDictionary<long, KeyValuePair<EvaluationLocation, ProfiledLocation>> idTable, 262private static bool IsTooSmall(ProfiledLocation profiledData) 268private static ProfiledLocation AggregateProfiledLocation(ProfiledLocation location, 269ProfiledLocation otherLocation)
LogMessagePacketBase.cs (5)
1079private void WriteProfiledLocation(ITranslator translator, ProfiledLocation profiledLocation) 1497var dictionary = new ArrayDictionary<EvaluationLocation, ProfiledLocation>(count); 1502var profiledLocation = ReadProfiledLocation(translator); 1559private ProfiledLocation ReadProfiledLocation(ITranslator translator) 1569var profiledLocation = new ProfiledLocation(
Microsoft.Build.Engine.UnitTests (3)
BuildEventArgsSerialization_Tests.cs (2)
792ProfilerResult = new ProfilerResult(new Dictionary<EvaluationLocation, ProfiledLocation> 1206private string ToString(IReadOnlyDictionary<EvaluationLocation, ProfiledLocation> items)
EvaluationProfiler_Tests.cs (1)
203var totalGlobLocation = result.ProfiledLocations[totalGlob];
Microsoft.Build.Framework (4)
Profiler\ProfilerResult.cs (4)
20public IReadOnlyDictionary<EvaluationLocation, ProfiledLocation> ProfiledLocations { get; } 23public ProfilerResult(IDictionary<EvaluationLocation, ProfiledLocation> profiledLocations) 25ProfiledLocations = new ReadOnlyDictionary<EvaluationLocation, ProfiledLocation>(profiledLocations); 74return obj is ProfiledLocation location &&