Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Nov 11, 2024
1 parent 1552c93 commit 38e3c90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crab_utils/stats.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ inline std::ostream& operator<<(std::ostream& OS, const Stopwatch& sw) {
}

class CrabStats {
static const bool enabled = true;
/// Controls whether statistics collection is active.
/// When false, all statistics methods become no-ops for better performance.
static constexpr bool enabled = false;
static thread_local lazy_allocator<std::map<std::string, unsigned>> counters;
static thread_local lazy_allocator<std::map<std::string, Stopwatch>> sw;

Expand Down

0 comments on commit 38e3c90

Please sign in to comment.