File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
presto-native-execution/presto_cpp/main Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,10 @@ void PeriodicMemoryChecker::pushbackMemory() {
169
169
const uint64_t bytesToShrink = currentMemBytes - targetMemBytes;
170
170
VELOX_CHECK_GT (bytesToShrink, 0 );
171
171
172
- uint64_t latencyMs {0 };
172
+ uint64_t latencyUs {0 };
173
173
uint64_t freedBytes{0 };
174
174
{
175
- velox::MicrosecondTimer timer (&latencyMs );
175
+ velox::MicrosecondTimer timer (&latencyUs );
176
176
auto * cache = velox::cache::AsyncDataCache::getInstance ();
177
177
auto systemConfig = SystemConfig::instance ();
178
178
freedBytes = cache != nullptr ? cache->shrink (bytesToShrink) : 0 ;
@@ -208,7 +208,7 @@ void PeriodicMemoryChecker::pushbackMemory() {
208
208
}
209
209
}
210
210
RECORD_HISTOGRAM_METRIC_VALUE (
211
- kCounterMemoryPushbackLatencyMs , latencyMs * 1000 );
211
+ kCounterMemoryPushbackLatencyMs , latencyUs / 1000 );
212
212
LOG (INFO) << " Shrunk " << velox::succinctBytes (freedBytes);
213
213
}
214
214
} // namespace facebook::presto
You can’t perform that action at this time.
0 commit comments