anchor.diff:      final DateTime beforeSpawn = DateTime.now();
       await Isolate.spawn(
           isolateCompiler,
  -        StartMessageLatencyAndMemory(
  -            receivePort.sendPort, beforeSpawn, ProcessInfo.currentRss),
  +        StartMessageLatencyAndMemory(receivePort.sendPort, beforeSpawn,
  +            await currentHeapUsage(wsUri, groupRefId), wsUri, groupRefId),
           onExit: onExitReceivePort.sendPort,
           onError: onExitReceivePort.sendPort);
       final DateTime afterSpawn = DateTime.now();
  
positive.code:   }
  
    final String name;
    RawReceivePort receivePort;
  }
  
  
negative.code: // BSD-style license that can be found in the LICENSE file.
  
  import 'dart:async';
  import 'dart:developer';
  import 'dart:isolate';
  import 'dart:math';
  
  import 'package:meta/meta.dart';
  
  import 'package:compiler/src/dart2js.dart' as dart2js_main;
  import 'package:vm_service/vm_service.dart' as vm_service;
  import 'package:vm_service/vm_service_io.dart' as vm_service_io;
  
  class SpawnLatencyAndMemory {
    SpawnLatencyAndMemory(this.name, this.wsUri, this.groupRefId);
  
    Future<ResultMessageLatencyAndMemory> run() async {
      final completerResult = Completer();
  