We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df61055 commit f939529Copy full SHA for f939529
ydb/library/yql/dq/actors/compute/dq_compute_memory_quota.h
@@ -90,8 +90,12 @@ namespace NYql::NDq {
90
}
91
92
if (Y_UNLIKELY(ProfileStats)) {
93
- ProfileStats->MkqlMaxUsedMemory = std::max(ProfileStats->MkqlMaxUsedMemory, alloc->GetPeakAllocated());
94
- CAMQ_LOG_T("Peak memory usage: " << ProfileStats->MkqlMaxUsedMemory);
+ auto& previousMaxUsedMemory = ProfileStats->MkqlMaxUsedMemory;
+ auto currentUsedMemory = alloc->GetPeakAllocated();
95
+ if (currentUsedMemory > previousMaxUsedMemory) {
96
+ previousMaxUsedMemory = currentUsedMemory;
97
+ CAMQ_LOG_T("Peak memory usage: " << currentUsedMemory);
98
+ }
99
100
101
0 commit comments