package com.github.ferstl.jarscan;

import org.adoptopenjdk.jitwatch.jarscan.IJarScanOperation;
import org.adoptopenjdk.jitwatch.jarscan.methodsizehisto.MethodSizeHistoOperation;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;

/**
 * List frequencies of method bytecode sizes.
 *
 * @since 1.1
 */
@Mojo(
    name = "methodSizeHisto",
    aggregator = false,
    defaultPhase = LifecyclePhase.VERIFY,
    requiresDependencyCollection = ResolutionScope.TEST,
    requiresDependencyResolution = ResolutionScope.TEST,
    requiresDirectInvocation = false,
    threadSafe = true)
public class MethodSizeHistoMojo extends AbstractJarScanMojo {

  @Override
  protected IJarScanOperation createOperation() {
    return new MethodSizeHistoOperation();
  }

}

Add support for methodSizeHisto