| 133 | } |
| 134 | |
| 135 | void ProfileEntryPrototypeRegistry::AddPrototype(const ProfileEntryPrototype* prototype) { |
| 136 | lock_guard<SpinLock> l(lock_); |
| 137 | DCHECK(prototypes_.find(prototype->name()) == prototypes_.end()) << |
| 138 | "Found duplicate prototype name: " << prototype->name(); |
| 139 | prototypes_.emplace(prototype->name(), prototype); |
| 140 | } |
| 141 | |
| 142 | void ProfileEntryPrototypeRegistry::GetPrototypes( |
| 143 | vector<const ProfileEntryPrototype*>* out) { |
no test coverage detected