Lines Matching refs:k
150 size_t operator()(Key const& k) const { return k.hash(); } in operator ()()
159 Key(const Key& k) in Key() argument
160 : backtrace_(k.backtrace_), typeName1_(k.typeName1_), typeName2_(k.typeName2_) {} in Key()
162 void operator=(const Key& k) { in operator =() argument
163 backtrace_ = k.backtrace_; in operator =()
164 typeName1_ = k.typeName1_; in operator =()
165 typeName2_ = k.typeName2_; in operator =()
195 int cmp(const Key& k) const { in cmp()
196 int ret = backtrace_->cmp(*k.backtrace_); in cmp()
205 ret = k.typeName1_ - typeName1_; in cmp()
209 return k.typeName2_ - typeName2_; in cmp()
212 bool operator==(const Key& k) const { return cmp(k) == 0; } in operator ==()
253 void _record_backtrace(BacktraceMap* map, const Mutex& mutex, Key* k) { in _record_backtrace() argument
256 BacktraceMap::iterator it = map->find(*k); in _record_backtrace()
258 k->makePersistent(); in _record_backtrace()
259 map->insert(std::make_pair(*k, 1)); in _record_backtrace()
276 Key k(&bt, type); in profile_virtual_call() local
277 _record_backtrace(&virtual_calls, virtual_calls_mutex, &k); in profile_virtual_call()
290 Key k(&bt, template_type, prot_type); in profile_generic_protocol() local
291 _record_backtrace(&generic_calls, generic_calls_mutex, &k); in profile_generic_protocol()