Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: runtime/vm/clustered_snapshot.cc

Issue 2316513005: Separate size stats for rodata and instructions. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/clustered_snapshot.cc
diff --git a/runtime/vm/clustered_snapshot.cc b/runtime/vm/clustered_snapshot.cc
index 0601dae560a6c4ffd33d227a8668ee428fd8edc7..8ddbd397f94c85cf5edb02463140e5c8b4f6696e 100644
--- a/runtime/vm/clustered_snapshot.cc
+++ b/runtime/vm/clustered_snapshot.cc
@@ -4968,11 +4968,14 @@ void FullSnapshotWriter::WriteFullSnapshot() {
OS::Print("VMIsolate(CodeSize): %" Pd "\n", VmIsolateSnapshotSize());
OS::Print("Isolate(CodeSize): %" Pd "\n", IsolateSnapshotSize());
+ OS::Print("ReadOnlyData(CodeSize): %" Pd "\n",
+ instructions_writer_->data_size());
OS::Print("Instructions(CodeSize): %" Pd "\n",
- instructions_writer_->binary_size());
+ instructions_writer_->text_size());
intptr_t total = VmIsolateSnapshotSize() +
IsolateSnapshotSize() +
- instructions_writer_->binary_size();
+ instructions_writer_->data_size() +
+ instructions_writer_->text_size();
OS::Print("Total(CodeSize): %" Pd "\n", total);
}
}
« no previous file with comments | « no previous file | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698