@@ -407,16 +407,15 @@ class TRealBlockDevice : public IBlockDevice {
407
407
}
408
408
EndOffset = op->GetOffset () + opSize;
409
409
410
- ui64 duration = HPNow () - completionAction->SubmitTime ;
411
- ui64 durationMs = HPMilliSecondsFloat (duration);
410
+ double duration = HPMilliSecondsFloat (HPNow () - completionAction->SubmitTime );
412
411
if (op->GetType () == IAsyncIoOperation::EType::PRead) {
413
412
NSan::Unpoison (op->GetData (), opSize);
414
413
REQUEST_VALGRIND_MAKE_MEM_DEFINED (op->GetData (), opSize);
415
- Device.Mon.DeviceReadDuration.Increment(durationMs );
416
- LWPROBE (PDiskDeviceReadDuration, Device.GetPDiskId(), HPMilliSecondsFloat( duration) , opSize);
414
+ Device.Mon.DeviceReadDuration.Increment(duration );
415
+ LWPROBE (PDiskDeviceReadDuration, Device.GetPDiskId(), duration, opSize);
417
416
} else {
418
- Device.Mon .DeviceWriteDuration .Increment (durationMs );
419
- LWPROBE (PDiskDeviceWriteDuration, Device.GetPDiskId (), HPMilliSecondsFloat ( duration) , opSize);
417
+ Device.Mon .DeviceWriteDuration .Increment (duration );
418
+ LWPROBE (PDiskDeviceWriteDuration, Device.GetPDiskId (), duration, opSize);
420
419
}
421
420
if (completionAction->FlushAction) {
422
421
ui64 idx = completionAction->FlushAction ->OperationIdx ;
@@ -680,8 +679,8 @@ class TRealBlockDevice : public IBlockDevice {
680
679
Device.IsTrimEnabled = Device.IoContext ->DoTrim (op);
681
680
NHPTimer::STime endTime = HPNow ();
682
681
Device.IdleCounter .Decrement ();
683
- const ui64 durationUs = HPMicroSeconds (endTime - beginTime);
684
- Device.Mon .DeviceTrimDuration .Increment (durationUs );
682
+ const double duration = HPMilliSecondsFloat (endTime - beginTime);
683
+ Device.Mon .DeviceTrimDuration .Increment (duration );
685
684
*Device.Mon .DeviceEstimatedCostNs += completion->CostNs ;
686
685
if (Device.ActorSystem && Device.IsTrimEnabled ) {
687
686
LOG_DEBUG_S (*Device.ActorSystem , NKikimrServices::BS_DEVICE,
@@ -692,7 +691,7 @@ class TRealBlockDevice : public IBlockDevice {
692
691
<< " \" offset# " << op->GetOffset ()
693
692
<< " size# " << op->GetSize ());
694
693
LWPROBE (PDiskDeviceTrimDuration, Device.GetPDiskId (),
695
- HPMilliSecondsFloat (endTime - beginTime) , op->GetOffset ());
694
+ duration , op->GetOffset ());
696
695
}
697
696
}
698
697
completion->SetResult (EIoResult::Ok);
0 commit comments