Fix: BusiestReadTag was logged before the first interval
This commit is contained in:
parent
da14e1eb04
commit
4f3f70e0c5
|
@ -499,13 +499,14 @@ public:
|
|||
previousBusiestTag.reset();
|
||||
}
|
||||
|
||||
// TODO: report in status
|
||||
TraceEvent("BusiestReadTag", id)
|
||||
.detail("Elapsed", elapsed)
|
||||
.detail("Tag", printable(busiestTag))
|
||||
.detail("TagCount", busiestTagCount)
|
||||
.detail("TotalSampledCount", intervalTotalSampledCount)
|
||||
.detail("Reported", previousBusiestTag.present());
|
||||
if(intervalStart > 0) {
|
||||
TraceEvent("BusiestReadTag", id)
|
||||
.detail("Elapsed", elapsed)
|
||||
.detail("Tag", printable(busiestTag))
|
||||
.detail("TagCount", busiestTagCount)
|
||||
.detail("TotalSampledCount", intervalTotalSampledCount)
|
||||
.detail("Reported", previousBusiestTag.present())
|
||||
}
|
||||
|
||||
intervalCounts.clear();
|
||||
intervalTotalSampledCount = 0;
|
||||
|
|
Loading…
Reference in New Issue