MCPcopy Create free account
hub / github.com/apache/impala / AddHashTableCounters

Method AddHashTableCounters

be/src/exec/hash-table.cc:512–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512unique_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
530void HashTable::Close() {
531 // Print statistics only for the large hash tables or extremely verbose logging is

Callers

nothing calls this directly

Calls 1

CreateChildMethod · 0.80

Tested by

no test coverage detected