Skip to content

Commit

Permalink
issue-122: add counter for ConfirmBlobs (#760)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Montsev <[email protected]>
  • Loading branch information
SvartMetal and Mikhail Montsev authored Mar 20, 2024
1 parent 3e5730c commit dbc5a79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cloud/blockstore/libs/storage/core/disk_counters.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ enum class EPublishingPolicy
xxx(TrimFreshLog, __VA_ARGS__)\
xxx(AddConfirmedBlobs, __VA_ARGS__)\
xxx(AddUnconfirmedBlobs, __VA_ARGS__)\
xxx(ConfirmBlobs, __VA_ARGS__)\
// BLOCKSTORE_REPL_PART_REQUEST_COUNTERS

#define BLOCKSTORE_PART_REQUEST_COUNTERS_WITH_SIZE(xxx, ...) \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ void TPartitionActor::CompleteConfirmBlobs(
const auto duration =
CyclesToDurationSafe(GetCycleCount() - args.StartCycleCount);

PartCounters->RequestCounters.ConfirmBlobs.AddRequest(
duration.MicroSeconds());

IProfileLog::TSysReadWriteRequest request;
request.RequestType = ESysRequestType::ConfirmBlobs;
request.Duration = duration;
Expand Down

0 comments on commit dbc5a79

Please sign in to comment.