Examples of Instrumenter


Examples of net.grinder.scriptengine.Instrumenter

      final short numberOfThreads = properties.getShort("grinder.threads", (short) 1);
      final int reportToConsoleInterval = properties.getInt("grinder.reportToConsole.interval", 500);
      final int duration = properties.getInt("grinder.duration", 0);

      final Instrumenter instrumenter = scriptEngineContainer.createInstrumenter();

      m_testRegistryImplementation.setInstrumenter(instrumenter);

      m_logger.info("Instrumentation agents: {}", instrumenter.getDescription());

      // Force initialisation of the script engine before we start the
      // message
      // pump. Jython 2.5+ tests to see whether the stdin stream is a tty,
      // and
View Full Code Here

Examples of org.hibernate.bytecode.buildtime.Instrumenter

      if ( provider == null ) {
        throw new MojoExecutionException( "Unable to determine provider to use" );
      }
    }

    Instrumenter instrumenter = resolveInstrumenter( provider, new LoggingBridge() );
    try {
      instrumenter.execute( collectFilesToProcess() );
    }
    catch Throwable t ) {
      throw new MojoExecutionException( "Error executing instrumentation", t );
    }
  }
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

  private ExecutionDataStore execute(final ClassReader reader)
      throws Exception {
    IRuntime runtime = new SystemPropertiesRuntime();
    runtime.startup();
    final byte[] bytes = new Instrumenter(runtime).instrument(reader);
    final TargetLoader loader = new TargetLoader(target, bytes);
    run(loader.getTargetClass());
    final ExecutionDataStore store = new ExecutionDataStore();
    runtime.collect(store, false);
    runtime.shutdown();
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

   *            logger for exceptions during instrumentation
   */
  public CoverageTransformer(final IRuntime runtime,
      final AgentOptions options, final IExceptionLogger logger) {
    this.runtime = runtime;
    this.instrumenter = new Instrumenter(runtime);
    this.logger = logger;
    // Class names will be reported in VM notation:
    includes = new WildcardMatcher(
        toWildcard(toVMName(options.getIncludes())));
    excludes = new WildcardMatcher(
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

    // to collect execution data:
    final IRuntime runtime = new LoggerRuntime();

    // The Instrumenter creates a modified version of our test target class
    // that contains additional probes for execution data recording:
    final Instrumenter instr = new Instrumenter(runtime);
    final byte[] instrumented = instr
        .instrument(getTargetClass(targetName));

    // Now we're ready to run our instrumented class and need to startup the
    // runtime first:
    runtime.startup();
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

  @Override
  protected Runnable getInstrumentedRunnable() throws Exception {
    ClassReader reader = new ClassReader(TargetLoader.getClassData(target));
    IRuntime runtime = new LoggerRuntime();
    runtime.startup();
    final Instrumenter instr = new Instrumenter(runtime);
    final byte[] instrumentedBuffer = instr.instrument(reader);
    final TargetLoader loader = new TargetLoader(target, instrumentedBuffer);

    return (Runnable) loader.newTargetInstance();
  }
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

  private final WildcardMatcher exclClassloader;

  public CoverageTransformer(IRuntime runtime, AgentOptions options,
      final IExceptionLogger logger) {
    this.instrumenter = new Instrumenter(runtime);
    this.logger = logger;
    // Class names will be reported in VM notation:
    includes = new WildcardMatcher(toWildcard(toVMName(options.getIncludes())));
    excludes = new WildcardMatcher(toWildcard(toVMName(options.getExcludes())));
    exclClassloader = new WildcardMatcher(toWildcard(options.getExclClassloader()));
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

  private final WildcardMatcher exclClassloader;

  public CoverageTransformer(IRuntime runtime, AgentOptions options,
      final IExceptionLogger logger) {
    this.instrumenter = new Instrumenter(runtime);
    this.logger = logger;
    // Class names will be reported in VM notation:
    includes = new WildcardMatcher(toVMName(options.getIncludes()));
    excludes = new WildcardMatcher(toVMName(options.getExcludes()));
    exclClassloader = new WildcardMatcher(options.getExclClassloader());
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

    // to collect execution data:
    final IRuntime runtime = new LoggerRuntime();

    // The Instrumenter creates a modified version of our test target class
    // that contains additional probes for execution data recording:
    final Instrumenter instr = new Instrumenter(runtime);
    final byte[] instrumented = instr
        .instrument(getTargetClass(targetName));

    // Now we're ready to run our instrumented class and need to startup the
    // runtime first:
    runtime.startup();
View Full Code Here

Examples of org.jacoco.core.instr.Instrumenter

    // to collect execution data:
    final IRuntime runtime = new LoggerRuntime();

    // The Instrumenter creates a modified version of our test target class
    // that contains additional probes for execution data recording:
    final Instrumenter instr = new Instrumenter(runtime);
    final byte[] instrumented = instr
        .instrument(getTargetClass(targetName));

    // Now we're ready to run our instrumented class and need to startup the
    // runtime first:
    runtime.startup();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.