AME];
      if (allocatorSize === undefined) return;

      const allocatorSizeValue = allocatorSize.value;
      if (allocatorSizeValue === undefined) return;

      addSize(allocatorDump.fullName, allocatorSizeValue);
    });
  }

  /** Extract sizes of root allocators in a global memory dump. */
  function extractGlobalMemoryDumpAllocatorSizes(globalMemoryDump, addSize) {
    for (const pmd of Object.values(globalMemoryDump.processMemoryDumps)) {
      extractProcessMemoryDumpAllocatorSizes(pmd, addSize)