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

Method AddInfoStringInternal

be/src/util/runtime-profile.cc:1089–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087}
1088
1089void RuntimeProfileBase::AddInfoStringInternal(
1090 const string& key, string value, bool append, bool redact) {
1091 if (redact) Redact(&value);
1092
1093 StripTrailingWhitespace(&value);
1094
1095 lock_guard<SpinLock> l(info_strings_lock_);
1096 InfoStrings::iterator it = info_strings_.find(key);
1097 if (it == info_strings_.end()) {
1098 info_strings_.emplace(key, std::move(value));
1099 info_strings_display_order_.push_back(key);
1100 } else {
1101 if (append) {
1102 it->second += ", " + std::move(value);
1103 } else {
1104 it->second = std::move(value);
1105 }
1106 }
1107}
1108
1109void RuntimeProfile::UpdateInfoString(const string& key, string value) {
1110 lock_guard<SpinLock> l(info_strings_lock_);

Callers 1

AddSkewInfoMethod · 0.95

Calls 6

RedactFunction · 0.85
StripTrailingWhitespaceFunction · 0.85
moveFunction · 0.85
push_backMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected