Print the load of the hash table. */
| 265 | |
| 266 | /** Print the load of the hash table. */ |
| 267 | void printLoad() const |
| 268 | { |
| 269 | size_t size = m_data.size(); |
| 270 | size_t buckets = m_data.bucket_count(); |
| 271 | logger(1) << "Hash load: " << size << " / " << buckets << " = " |
| 272 | << std::setprecision(3) << (float)size / buckets |
| 273 | << " using " << toSI(getMemoryUsage()) << "B" << std::endl; |
| 274 | } |
| 275 | |
| 276 | private: |
| 277 |
no test coverage detected