anchor.diff:      // Run the test and capture stdout.
       var pr = Process.runSync(Platform.executable,
           ["--collect-code",
  -         "--code-collection-interval-in-us=100000",
  +         "--code-collection-interval-in-us=0",
            "--old_gen_growth_rate=10",
            "--log-code-drop",
            "--optimization-counter-threshold=-1",
  
positive.code:          Platform.script.toFilePath(),
           "--run"]);
  
      // Code drops are logged with --log-code-drop. Look through stdout for the
      // message that foo's code was dropped.
      var found = false;
      pr.stdout.split("\n").forEach((line) {
        if (line.contains("Detaching code") && line.contains("foo")) {
          found = true;
        }
      });
      Expect.isTrue(found);
    }
  }
  
negative.code:       timer.cancel();
        // foo is called again to make sure we can still run it even after
        // its code has been detached.
        var ret = foo(2);
        print("foo=$ret");
      }
    });
  }
  