@Benchmark
  @Threads(16)
  public void testLargeBundleRunnersCoreStateSampler(
      RunnersCoreStateTracker trackerState, Blackhole bh) throws Exception {
    ExecutionStateTracker tracker = trackerState.tracker;
    Closeable c = tracker.activate();
    for (int i = 0; i < 1000; ) {
      Closeable close1 = tracker.enterState(trackerState.state1);
      Closeable close2 = tracker.enterState(trackerState.state2);
      Closeable close3 = tracker.enterState(trackerState.state3);
      // trival code that is being sampled for this state
      i += 1;
      bh.consume(i);
      close3.close();
      close2.close();
      close1.close();
    }
    c.close();
  }
@Test
  public void testLargeBundleRunnersCoreStateSampler() throws Exception {
    RunnersCoreStateSampler state = new RunnersCoreStateSampler();
    RunnersCoreStateTracker threadState = new RunnersCoreStateTracker();
    state.setup();
    threadState.setup(state);
    new ExecutionStateSamplerBenchmark()
        .testLargeBundleRunnersCoreStateSampler(threadState, blackhole);
    state.tearDown();
  }