Skip to content

Commit

Permalink
Address PR comments microsoft#3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr1sso committed Oct 29, 2019
1 parent 0706e99 commit 9b26861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Public/Src/Engine/Scheduler/PipExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ public static async Task<ExecutionResult> ExecuteProcessAsync(
registerQueryRamUsageMb(
() =>
{
using (operationContext.StartAsyncOperation(PipExecutorCounter.QueryRamUsageDuration))
using (counters[PipExecutorCounter.QueryRamUsageDuration].Start())
{
lastObservedPeakRamUsage =
(int)ByteSizeFormatter.ToMegabytes((long)(executor.GetActivePeakWorkingSet() ?? 0));
Expand Down
2 changes: 1 addition & 1 deletion Public/Src/Engine/Scheduler/Tracing/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ internal abstract void CacheTransferStats(
EventLevel = Level.Verbose,
Keywords = (int)Keywords.UserMessage,
EventTask = (ushort)Tasks.Scheduler,
Message = "Failed to get the current memory pressure level - resource cancelation will be skipped all together! Available RAM MB: {availableRam} < {minimumAvailableRam})" +
Message = "Failed to get the current memory pressure level - resource cancelation will only take /minimumAvailableRam and /maximumRamUtilization into account! Available RAM MB: {availableRam} < {minimumAvailableRam})" +
" && (used RAM percentage: {ramUtilization} > {maximumRamUtilization}) ")]
internal abstract void UnableToGetMemoryPressureLevel(
LoggingContext loggingContext,
Expand Down

0 comments on commit 9b26861

Please sign in to comment.