14 instantiations of EvaluationLocation
Microsoft.Build (3)
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
1786return new EvaluationLocation(id, parentId, evaluationPass, evaluationDescription, file, line, elementName, description, kind); 1789return new EvaluationLocation(0, null, evaluationPass, evaluationDescription, file, line, elementName, description, kind);
LogMessagePacketBase.cs (1)
1545var evaluationLocation = new EvaluationLocation(
Microsoft.Build.Engine.UnitTests (3)
BuildEventArgsSerialization_Tests.cs (3)
795new EvaluationLocation(1, 0, EvaluationPass.InitialProperties, "desc1", "file1", 7, "element1", "description", EvaluationLocationKind.Condition), 799new EvaluationLocation(0, null, EvaluationPass.LazyItems, "desc2", "file1", null, "element2", "description2", EvaluationLocationKind.Glob), 803new EvaluationLocation(2, 0, EvaluationPass.Properties, "desc2", "file1", null, "element2", "description2", EvaluationLocationKind.Element),
Microsoft.Build.Framework (8)
Profiler\EvaluationLocation.cs (8)
110return new EvaluationLocation(parentId, evaluationPass, evaluationDescription, file, line, "Condition", condition, kind: EvaluationLocationKind.Condition); 117return new EvaluationLocation(parentId, evaluationPass, evaluationDescription, file, line, element?.ElementName, 125return new EvaluationLocation(parentId, evaluationPass, evaluationDescription, file, line, "Glob", globDescription, kind: EvaluationLocationKind.Glob); 131return new EvaluationLocation(EvaluationPass.TotalGlobbing, 188return new EvaluationLocation(this.Id, evaluationPass, passDescription ?? PassDefaultDescription[evaluationPass], 201return new EvaluationLocation(this.Id, parentId, this.EvaluationPass, this.EvaluationPassDescription, 208return new EvaluationLocation(this.Id, this.EvaluationPass, this.EvaluationPassDescription, file, null, null, null, this.Kind); 273return new EvaluationLocation(EvaluationIdProvider.GetNextId(), null, default(EvaluationPass), null, null, null,
72 references to EvaluationLocation
Microsoft.Build (44)
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 (6)
23private readonly Dictionary<EvaluationLocation, ProfiledLocation> _timeSpent = new Dictionary<EvaluationLocation, ProfiledLocation>(); 25private EvaluationLocation CurrentLocation => _evaluationStack.Count == 0 ? EvaluationLocation.EmptyLocation : _evaluationStack.Peek().Location; 104public EvaluationLocation Location { get; } 109public EvaluationFrame(EvaluationProfiler evaluationProfiler, EvaluationLocation location)
Evaluation\Profiler\ProfilerResultPrettyPrinter.cs (2)
60var location = pair.Key; 76var location = pair.Key;
Logging\BinaryLogger\BuildEventArgsReader.cs (3)
718var d = new Dictionary<EvaluationLocation, ProfiledLocation>(count); 721var evaluationLocation = ReadEvaluationLocation(); 1759private EvaluationLocation ReadEvaluationLocation()
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1288private void Write(EvaluationLocation item)
Logging\EvaluationLocationIdAgnosticComparer.cs (7)
13/// Comparer for <see cref="EvaluationLocation"/> that ignores 14/// both <see cref="EvaluationLocation.Id"/> and <see cref="EvaluationLocation.ParentId"/> 16internal class EvaluationLocationIdAgnosticComparer : IEqualityComparer<EvaluationLocation> 25public bool Equals(EvaluationLocation x, EvaluationLocation y) 38public int GetHashCode(EvaluationLocation obj)
Logging\ProfilerLogger.cs (16)
34private Dictionary<EvaluationLocation, ProfiledLocation> _aggregatedLocations = null; 128new Dictionary<EvaluationLocation, ProfiledLocation>(EvaluationLocationIdAgnosticComparer.Singleton); 135var originalLocations = new Dictionary<EvaluationLocation, EvaluationLocation>(EvaluationLocationIdAgnosticComparer.Singleton); 167_aggregatedLocations[EvaluationLocation.CreateLocationForAggregatedGlob()] = 174IDictionary<EvaluationLocation, EvaluationLocation> originalLocations, 176IDictionary<EvaluationLocation, ProfiledLocation> aggregatedLocations, 177KeyValuePair<EvaluationLocation, ProfiledLocation> pairToMerge) 186var originalKey = originalLocations[pairToMerge.Key]; 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)); 228var key = prunedPair.Key; 240private static long? FindBigEnoughParentId(IDictionary<long, KeyValuePair<EvaluationLocation, ProfiledLocation>> idTable,
LogMessagePacketBase.cs (5)
1043private void WriteEvaluationLocation(ITranslator translator, EvaluationLocation evaluationLocation) 1497var dictionary = new ArrayDictionary<EvaluationLocation, ProfiledLocation>(count); 1501var evaluationLocation = ReadEvaluationLocation(translator); 1510private EvaluationLocation ReadEvaluationLocation(ITranslator translator) 1545var evaluationLocation = new EvaluationLocation(
Microsoft.Build.Engine.UnitTests (12)
BuildEventArgsSerialization_Tests.cs (2)
792ProfilerResult = new ProfilerResult(new Dictionary<EvaluationLocation, ProfiledLocation> 1206private string ToString(IReadOnlyDictionary<EvaluationLocation, ProfiledLocation> items)
EvaluationProfiler_Tests.cs (10)
200var totalGlob = profiledElements.Find(evaluationLocation => 223var totalEvaluation = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.TotalEvaluation); 228var itemPass = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.Items); 229var itemGroup = profiledElements.Find(e => e.ElementName == "ItemGroup"); 230var testItem = profiledElements.Find(e => e.ElementName == "Test" && e.EvaluationPass == EvaluationPass.Items); 235var lazyItemPass = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.LazyItems); 236var lazyTestItem = profiledElements.Find(e => e.ElementName == "Test" && e.EvaluationPass == EvaluationPass.LazyItems); 240var targetPass = profiledElements.Find(e => e.IsEvaluationPass && e.EvaluationPass == EvaluationPass.Targets); 241var target = profiledElements.Find(e => e.ElementName == "Target"); 242var messageTarget = profiledElements.Find(e => e.ElementName == "Message");
Microsoft.Build.Framework (16)
Profiler\EvaluationLocation.cs (13)
107public static EvaluationLocation CreateLocationForCondition(long? parentId, EvaluationPass evaluationPass, string evaluationDescription, string file, 114public static EvaluationLocation CreateLocationForProject(long? parentId, EvaluationPass evaluationPass, string evaluationDescription, string file, 122public static EvaluationLocation CreateLocationForGlob(long? parentId, EvaluationPass evaluationPass, 129public static EvaluationLocation CreateLocationForAggregatedGlob() 183public static EvaluationLocation EmptyLocation { get; } = CreateEmptyLocation(); 186public readonly EvaluationLocation WithEvaluationPass(EvaluationPass evaluationPass, string passDescription = null) 193public EvaluationLocation WithParentId(long? parentId) 206public EvaluationLocation WithFile(string file) 212public EvaluationLocation WithFileLineAndElement(string file, int? line, IProjectElement element) 218public EvaluationLocation WithFileLineAndCondition(string file, int? line, string condition) 224public EvaluationLocation WithGlob(string globDescription) 232if (obj is EvaluationLocation other) 271private static EvaluationLocation CreateEmptyLocation()
Profiler\ProfilerResult.cs (3)
20public IReadOnlyDictionary<EvaluationLocation, ProfiledLocation> ProfiledLocations { get; } 23public ProfilerResult(IDictionary<EvaluationLocation, ProfiledLocation> profiledLocations) 25ProfiledLocations = new ReadOnlyDictionary<EvaluationLocation, ProfiledLocation>(profiledLocations);