public void Execute(CommandExecutionContext context) { var writer = new DumpWriter.DumpWriter( Verbose ? new PrinterTextWriter(context.Printer) : null ); // TODO Try to make the string shared between here and the DumpNative class in CLRMD writer.Dump(context.ProcessId, DumpType, FileName, "DumpWriter dump: has heap"); context.WriteLine("Resulting dump size: {0:N0} bytes", new FileInfo(FileName).Length); }