private static BenchmarkMetrics getDefaultMetrics()

in TransformCore/src/main/java/com/facebook/ads/injkit/benchmark/BenchmarkInjector.java [145:162]


  private static BenchmarkMetrics getDefaultMetrics(
      String benchmarkAnnotationClassDesc, Model model) throws AnnotationProcessingException {
    Integer warnAtMillisProperty =
        expectIntAnnotationDefaultProperty(
            benchmarkAnnotationClassDesc, WARN_AT_MILLIS_PROPERTY, model);
    if (warnAtMillisProperty == null) {
      warnAtMillisProperty = -1;
    }

    Integer failAtMillisProperty =
        expectIntAnnotationDefaultProperty(
            benchmarkAnnotationClassDesc, FAIL_AT_MILLIS_PROPERTY, model);
    if (failAtMillisProperty == null) {
      failAtMillisProperty = -1;
    }

    return new BenchmarkMetrics(warnAtMillisProperty, failAtMillisProperty);
  }