@@ -245,9 +245,7 @@ void BedrockCommand::finalizeTimingInfo()
245245 uint64_t blockingPostProcessTotal = 0 ;
246246 uint64_t commitWorkerTotal = 0 ;
247247 uint64_t blockingCommitWorkerTotal = 0 ;
248- uint64_t commitSyncTotal = 0 ;
249248 uint64_t queueWorkerTotal = 0 ;
250- uint64_t queueSyncTotal = 0 ;
251249 uint64_t queueBlockingTotal = 0 ;
252250 uint64_t queuePageLockTotal = 0 ;
253251 for (const auto & entry: timingInfo) {
@@ -276,14 +274,10 @@ void BedrockCommand::finalizeTimingInfo()
276274 } else if (get<0 >(entry) == BLOCKING_COMMIT_WORKER ) {
277275 commitWorkerTotal += get<2 >(entry) - get<1 >(entry);
278276 blockingCommitWorkerTotal += get<2 >(entry) - get<1 >(entry);
279- } else if (get<0 >(entry) == COMMIT_SYNC ) {
280- commitSyncTotal += get<2 >(entry) - get<1 >(entry);
281277 } else if (get<0 >(entry) == QUEUE_WORKER ) {
282278 queueWorkerTotal += get<2 >(entry) - get<1 >(entry);
283279 } else if (get<0 >(entry) == QUEUE_BLOCKING ) {
284280 queueBlockingTotal += get<2 >(entry) - get<1 >(entry);
285- } else if (get<0 >(entry) == QUEUE_SYNC ) {
286- queueSyncTotal += get<2 >(entry) - get<1 >(entry);
287281 } else if (get<0 >(entry) == QUEUE_PAGE_LOCK ) {
288282 queuePageLockTotal += get<2 >(entry) - get<1 >(entry);
289283 }
@@ -293,8 +287,8 @@ void BedrockCommand::finalizeTimingInfo()
293287 uint64_t totalTime = STimeNow () - creationTime;
294288
295289 // Time that wasn't accounted for in all the other metrics.
296- uint64_t unaccountedTime = totalTime - (prePeekTotal + peekTotal + processTotal + postProcessTotal + commitWorkerTotal + commitSyncTotal +
297- escalationTimeUS + queueWorkerTotal + queueBlockingTotal + queueSyncTotal + queuePageLockTotal);
290+ uint64_t unaccountedTime = totalTime - (prePeekTotal + peekTotal + processTotal + postProcessTotal + commitWorkerTotal +
291+ escalationTimeUS + queueWorkerTotal + queueBlockingTotal + queuePageLockTotal);
298292
299293 uint64_t exclusiveTransactionLockTime = blockingPeekTotal + blockingProcessTotal + blockingCommitWorkerTotal;
300294 uint64_t blockingCommitThreadTime = exclusiveTransactionLockTime + blockingPrePeekTotal + blockingPostProcessTotal;
@@ -357,11 +351,9 @@ void BedrockCommand::finalizeTimingInfo()
357351 " blockingCommitThreadTime:" << blockingCommitThreadTime / 1000 << " , "
358352 " exclusiveTransactionLockTime:" << exclusiveTransactionLockTime / 1000 <<
359353 " . Commit: "
360- " worker:" << commitWorkerTotal / 1000 << " , "
361- " sync:" << commitSyncTotal / 1000 <<
354+ " worker:" << commitWorkerTotal / 1000 <<
362355 " . Queue: "
363356 " worker:" << queueWorkerTotal / 1000 << " , "
364- " sync:" << queueSyncTotal / 1000 << " , "
365357 " blocking:" << queueBlockingTotal / 1000 << " , "
366358 " pageLock:" << queuePageLockTotal / 1000 << " , "
367359 " escalation:" << escalationTimeUS / 1000 <<
0 commit comments