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

Method AddPrototype

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

Source from the content-addressed store, hash-verified

133}
134
135void 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
142void ProfileEntryPrototypeRegistry::GetPrototypes(
143 vector<const ProfileEntryPrototype*>* out) {

Callers 1

ProfileEntryPrototypeMethod · 0.80

Calls 3

findMethod · 0.45
nameMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected