Method* Profiler::find_method(Env* env, rmethod cm, rsymbol container, rsymbol name, Kind kind) { method_id id = create_id(env, cm, container, name, kind); Method* method; MethodMap::iterator iter = methods_.find(id); if(iter == methods_.end()) { method = new Method(id, name, container, kind); methods_[method->id()] = method; } else { method = iter->second; } return method; }