use of com.newrelic.agent.profile.method.ExactMethodInfo in project newrelic-java-agent by newrelic.
the class ProfiledMethodFactory method getMethodInfo.
public MethodInfo getMethodInfo(ClassMethodSignature methodSignature) {
MethodInfo methodInfo = methodInfos.get(methodSignature);
if (null == methodInfo) {
Type[] argumentTypes = Type.getArgumentTypes(methodSignature.getMethodDesc());
List<String> arguments = new ArrayList<>(argumentTypes.length);
for (Type t : argumentTypes) {
arguments.add(t.getClassName());
}
methodInfo = new ExactMethodInfo(arguments, (InstrumentedMethod) null);
MethodInfo previous = methodInfos.putIfAbsent(methodSignature, methodInfo);
if (previous != null) {
return previous;
}
}
return methodInfo;
}
Aggregations