Index: runtime/vm/snapshot.cc |
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc |
index db09095cf5ec4887f7f240071eb793861ee3c614..0bffe7ba0513428d41f3b6efeae76597e4165aae 100644 |
--- a/runtime/vm/snapshot.cc |
+++ b/runtime/vm/snapshot.cc |
@@ -1951,6 +1951,15 @@ void FullSnapshotWriter::WriteFullSnapshot() { |
if (snapshot_code_) { |
instructions_writer_->WriteAssembly(); |
instructions_snapshot_size_ = instructions_writer_->BytesWritten(); |
+ |
+ OS::Print("VMIsolate(CodeSize): %" Pd "\n", VmIsolateSnapshotSize()); |
+ OS::Print("Isolate(CodeSize): %" Pd "\n", IsolateSnapshotSize()); |
+ OS::Print("Instructions(CodeSize): %" Pd "\n", |
+ instructions_writer_->binary_size()); |
+ intptr_t total = VmIsolateSnapshotSize() + |
+ IsolateSnapshotSize() + |
+ instructions_writer_->binary_size(); |
+ OS::Print("Total(CodeSize): %" Pd "\n", total); |
} |
} |