in TransformCore/src/main/java/com/facebook/ads/injkit/benchmark/BenchmarkInjector.java [270:292]
private BenchmarkMetrics methodBenchmarkMetrics(
ClassNode classNode, MethodNode methodNode, Model model)
throws AnnotationProcessingException {
if (model
.methodClosureWithAnnotationFilter(
classNode.name,
methodNode.name,
methodNode.desc,
methodNode.access,
annotationClassDesc)
.isEmpty()) {
return null;
}
int warnValue = getAnnotationValue(classNode, methodNode, model, WARN_AT_MILLIS_PROPERTY);
int failValue = getAnnotationValue(classNode, methodNode, model, FAIL_AT_MILLIS_PROPERTY);
if (warnValue == -1 && failValue == -1) {
return null;
} else {
return new BenchmarkMetrics(warnValue, failValue);
}
}