From 0bef1eac133ed26dacf1c1bec91331e28850c21e Mon Sep 17 00:00:00 2001 From: shgandhi Date: Thu, 5 May 2022 16:10:08 -0700 Subject: [PATCH] Add scoped time for bft_request_handler execute call scope --- bftengine/src/bftengine/ReplicaImp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bftengine/src/bftengine/ReplicaImp.cpp b/bftengine/src/bftengine/ReplicaImp.cpp index d7f8cc01d1..30ca8fc328 100644 --- a/bftengine/src/bftengine/ReplicaImp.cpp +++ b/bftengine/src/bftengine/ReplicaImp.cpp @@ -5040,7 +5040,7 @@ void ReplicaImp::executeRequests(PrePrepareMsg *ppMsg, Bitmap &requestSet, Times LOG_DEBUG(GL, "Executing all the requests of preprepare message with cid: " << ppMsg->getCid() << " with accumulation"); { - // TimeRecorder scoped_timer1(*histograms_.executeWriteRequest); + TimeRecorder scoped_timer1(*histograms_.executeWriteRequest); const concordUtils::SpanContext &span_context{""}; auto span = concordUtils::startChildSpanFromContext(span_context, "bft_client_request"); span.setTag("rid", config_.getreplicaId()); @@ -5063,7 +5063,7 @@ void ReplicaImp::executeRequests(PrePrepareMsg *ppMsg, Bitmap &requestSet, Times for (auto &req : *pAccumulatedRequests) { singleRequest.push_back(req); { - // TimeRecorder scoped_timer1(*histograms_.executeWriteRequest); + TimeRecorder scoped_timer1(*histograms_.executeWriteRequest); const concordUtils::SpanContext &span_context{""}; auto span = concordUtils::startChildSpanFromContext(span_context, "bft_client_request"); span.setTag("rid", config_.getreplicaId());