copyWith method
Returns an immutable copy with selected runtime fields replaced.
VM service extensions can appear after the initial VM snapshot (for example when a Flutter isolate registers an extension during startup), so the profiler needs to update this metadata without rebuilding the rest of the runtime identity.
Implementation
CockpitVmRuntimeProfile copyWith({Iterable<String>? extensions}) =>
CockpitVmRuntimeProfile(
name: name,
version: version,
operatingSystem: operatingSystem,
hostCpu: hostCpu,
targetCpu: targetCpu,
architectureBits: architectureBits,
pid: pid,
startTimeMs: startTimeMs,
isolateCount: isolateCount,
isolateGroupCount: isolateGroupCount,
systemIsolateCount: systemIsolateCount,
extensions: extensions ?? this.extensions,
);