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