| 510 | } |
| 511 | |
| 512 | unique_ptr<HashTableStatsProfile> HashTable::AddHashTableCounters( |
| 513 | RuntimeProfile* parent_profile) { |
| 514 | unique_ptr<HashTableStatsProfile> stats_profile(new HashTableStatsProfile()); |
| 515 | RuntimeProfile* hashtable_profile = stats_profile->hashtable_profile = |
| 516 | parent_profile->CreateChild(RuntimeProfile::HASH_TABLE, true, true, false); |
| 517 | stats_profile->num_hash_probes_ = |
| 518 | ADD_COUNTER(hashtable_profile, "Probes", TUnit::UNIT); |
| 519 | stats_profile->num_hash_travels_ = |
| 520 | ADD_COUNTER(hashtable_profile, "Travel", TUnit::UNIT); |
| 521 | stats_profile->num_hash_collisions_ = |
| 522 | ADD_COUNTER(hashtable_profile, "HashCollisions", TUnit::UNIT); |
| 523 | stats_profile->num_hash_buckets_ = |
| 524 | ADD_COUNTER(hashtable_profile, "HashBuckets", TUnit::UNIT); |
| 525 | stats_profile->num_hash_resizes_ = |
| 526 | ADD_COUNTER(hashtable_profile, "Resizes", TUnit::UNIT); |
| 527 | return stats_profile; |
| 528 | } |
| 529 | |
| 530 | void HashTable::Close() { |
| 531 | // Print statistics only for the large hash tables or extremely verbose logging is |
nothing calls this directly
no test coverage detected