Index: src/mksnapshot.cc |
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc |
index d7775517b7d26b20bb37fc8d109bacb212c878f5..275c8acc832c279dc530cd2285993cc15cf620de 100644 |
--- a/src/mksnapshot.cc |
+++ b/src/mksnapshot.cc |
@@ -166,37 +166,30 @@ class CppByteSink : public PartialSnapshotSink { |
} |
void WriteSpaceUsed( |
- const char* prefix, |
int new_space_used, |
int pointer_space_used, |
int data_space_used, |
int code_space_used, |
int map_space_used, |
- int cell_space_used) { |
+ int cell_space_used, |
+ int large_space_used) { |
+ fprintf(fp_, "const int Snapshot::new_space_used_ = %d;\n", new_space_used); |
fprintf(fp_, |
- "const int Snapshot::%snew_space_used_ = %d;\n", |
- prefix, |
- new_space_used); |
- fprintf(fp_, |
- "const int Snapshot::%spointer_space_used_ = %d;\n", |
- prefix, |
+ "const int Snapshot::pointer_space_used_ = %d;\n", |
pointer_space_used); |
fprintf(fp_, |
- "const int Snapshot::%sdata_space_used_ = %d;\n", |
- prefix, |
+ "const int Snapshot::data_space_used_ = %d;\n", |
data_space_used); |
fprintf(fp_, |
- "const int Snapshot::%scode_space_used_ = %d;\n", |
- prefix, |
+ "const int Snapshot::code_space_used_ = %d;\n", |
code_space_used); |
+ fprintf(fp_, "const int Snapshot::map_space_used_ = %d;\n", map_space_used); |
fprintf(fp_, |
- "const int Snapshot::%smap_space_used_ = %d;\n", |
- prefix, |
- map_space_used); |
- fprintf(fp_, |
- "const int Snapshot::%scell_space_used_ = %d;\n", |
- prefix, |
+ "const int Snapshot::cell_space_used_ = %d;\n", |
cell_space_used); |
+ fprintf(fp_, |
+ "const int Snapshot::large_space_used_ = %d;\n", |
+ large_space_used); |
} |
void WritePartialSnapshot() { |
@@ -407,20 +400,12 @@ int main(int argc, char** argv) { |
sink.WritePartialSnapshot(); |
sink.WriteSpaceUsed( |
- "context_", |
partial_ser.CurrentAllocationAddress(i::NEW_SPACE), |
partial_ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), |
partial_ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), |
partial_ser.CurrentAllocationAddress(i::CODE_SPACE), |
partial_ser.CurrentAllocationAddress(i::MAP_SPACE), |
- partial_ser.CurrentAllocationAddress(i::CELL_SPACE)); |
- sink.WriteSpaceUsed( |
- "", |
- ser.CurrentAllocationAddress(i::NEW_SPACE), |
- ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), |
- ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), |
- ser.CurrentAllocationAddress(i::CODE_SPACE), |
- ser.CurrentAllocationAddress(i::MAP_SPACE), |
- ser.CurrentAllocationAddress(i::CELL_SPACE)); |
+ partial_ser.CurrentAllocationAddress(i::CELL_SPACE), |
+ partial_ser.CurrentAllocationAddress(i::LO_SPACE)); |
return 0; |
} |