| 93 | } |
| 94 | |
| 95 | std::string GetCurrentThreadName() { |
| 96 | const auto& thread_name = |
| 97 | ThreadDataRegistry<std::string>::GetInstance().GetCurrentThreadData(); |
| 98 | return thread_name.empty() ? kDefaultThreadName : thread_name; |
| 99 | } |
| 100 | |
| 101 | std::unordered_map<uint64_t, std::string> GetAllThreadNames() { |
| 102 | return ThreadDataRegistry<std::string>::GetInstance() |