[CP] [FEAT MERGE]checkpoint diagnose virtual tablet

Co-authored-by: LiefB <954800091@qq.com>
This commit is contained in:
obdev
2024-03-14 10:15:21 +00:00
committed by ob-robot
parent 68a433ea37
commit 7a8c39abcb
79 changed files with 5609 additions and 1462 deletions

View File

@ -283,6 +283,15 @@ public:
total_cost += common::ObTimeUtility::current_time() - last_click_ts_;
return total_cost > warn_threshold_;
}
int64_t get_total_time() const
{
int64_t total_cost = 0;
for (int64_t idx = 0; idx < idx_; ++idx) {
total_cost += click_poinsts_[idx];
}
total_cost += common::ObTimeUtility::fast_current_time() - last_click_ts_;
return total_cost;
}
bool click(const uint16_t line)
{
if (OB_LIKELY(idx_ < CAPACITY)) {