| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 0515019630ad1d7e69f0f3b788072b50b090681c..fce16cebe31a590e279a8284d4863e1c8545b9f7 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -211,6 +211,20 @@ intptr_t Heap::CommittedMemory() {
|
| lo_space_->Size();
|
| }
|
|
|
| +
|
| +size_t Heap::CommittedPhysicalMemory() {
|
| + if (!HasBeenSetUp()) return 0;
|
| +
|
| + return new_space_.CommittedPhysicalMemory() +
|
| + old_pointer_space_->CommittedPhysicalMemory() +
|
| + old_data_space_->CommittedPhysicalMemory() +
|
| + code_space_->CommittedPhysicalMemory() +
|
| + map_space_->CommittedPhysicalMemory() +
|
| + cell_space_->CommittedPhysicalMemory() +
|
| + lo_space_->CommittedPhysicalMemory();
|
| +}
|
| +
|
| +
|
| intptr_t Heap::CommittedMemoryExecutable() {
|
| if (!HasBeenSetUp()) return 0;
|
|
|
|
|