@brief Validates hit counts and resets it if necessary
| 2123 | |
| 2124 | /// @brief Validates hit counts and resets it if necessary |
| 2125 | inline void validateHitCounts(std::size_t n) { |
| 2126 | if (m_hitCounts >= base::consts::kMaxLogPerCounter) { |
| 2127 | m_hitCounts = (n >= 1 ? base::consts::kMaxLogPerCounter % n : 0); |
| 2128 | } |
| 2129 | ++m_hitCounts; |
| 2130 | } |
| 2131 | |
| 2132 | inline const char* filename(void) const { |
| 2133 | return m_filename; |