/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package foam.nanos.bench.benchmarks;

import foam.core.X;
import foam.nanos.bench.Benchmark;
import foam.nanos.bench.BenchmarkRunner;
import foam.nanos.bench.BenchmarkRunner.Builder;
import foam.nanos.pm.*;
import java.util.Map;

public class PMBenchmark
  implements Benchmark
{

  @Override
  public void setup(X x) {
    System.err.println("*************************************** setup: " + x.get("pmLogger"));
  }

  @Override
  public void teardown(X x, Map stats) {
  }

  @Override
  public void execute(X x) {
    PMLogger pmLogger = (PMLogger) x.get("pmLogger");
    PM pm = new PM(Object.class, "def");
//    pm.log(x);
pmLogger.log(pm);
    PM pm2 = new PM(foam.nanos.bench.Benchmark.class, "def");
    pmLogger.log(pm2);
//    pm2.log(x);
  }
}

@@ -441,107 +441,12 @@
 ) %7B%0A
-    System.err.println(%22*************************************** setup: %22 + x.get(%22pmLogger%22));%0A
   %7D%0A
+
 %0A  @
@@ -551,142 +551,11 @@
   PM
-Logger pmLogger = (PMLogger) x.get(%22pmLogger%22);%0A    PM pm = new PM(Object.class, %22def%22);%0A//    pm.log(x);%0ApmLogger.log(pm);%0A    PM pm2
+ pm
  = n
@@ -599,11 +599,11 @@
 s, %22
-def
+abc
 %22);%0A
@@ -612,34 +612,8 @@
   pm
-Logger.log(pm2);%0A//    pm2
 .log

Fix up PMBenchmark.