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