| 75 | } |
| 76 | |
| 77 | std::string Statistics::GetTag(size_t handle) { |
| 78 | std::lock_guard<std::mutex> lock(Instance().mutex_); |
| 79 | std::string tag; |
| 80 | // Perform a linear search for the tag. |
| 81 | for (typename map_t::value_type current_tag : Instance().tag_map_) { |
| 82 | if (current_tag.second == handle) { |
| 83 | return current_tag.first; |
| 84 | } |
| 85 | } |
| 86 | return tag; |
| 87 | } |
| 88 | |
| 89 | StatsCollectorImpl::StatsCollectorImpl(size_t handle) : handle_(handle) {} |
| 90 |
nothing calls this directly
no outgoing calls
no test coverage detected