Skip to content

Commit

Permalink
Log more often in page allocator model test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyastolfi committed Feb 21, 2024
1 parent f782b90 commit 8ed6476
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/llfs/page_allocator.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,13 @@ class PageAllocatorModel
}

static std::atomic<usize> step_count{0};
++step_count;
LLFS_LOG_INFO_EVERY_N(25000) << BATT_INSPECT(step_count);
thread_local usize local_count{0};
++local_count;
if ((local_count & 0xfff) == 0) {
step_count.fetch_add(local_count);
local_count = 0;
LLFS_LOG_INFO_EVERY_N(5) << BATT_INSPECT(step_count);
}

LLFS_VLOG(2) << "Entered PageAllocatorModel::step()";

Expand Down

0 comments on commit 8ed6476

Please sign in to comment.