| 1107 | } |
| 1108 | |
| 1109 | void RuntimeProfile::UpdateInfoString(const string& key, string value) { |
| 1110 | lock_guard<SpinLock> l(info_strings_lock_); |
| 1111 | InfoStrings::iterator it = info_strings_.find(key); |
| 1112 | if (it != info_strings_.end()) it->second = std::move(value); |
| 1113 | } |
| 1114 | |
| 1115 | const string* RuntimeProfile::GetInfoString(const string& key) const { |
| 1116 | lock_guard<SpinLock> l(info_strings_lock_); |