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

Unified Diff: src/extensions/statistics-extension.cc

Issue 2371133002: [heap] Make committed counters on space size_t (Closed)
Patch Set: rebase 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 | src/heap/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/statistics-extension.cc
diff --git a/src/extensions/statistics-extension.cc b/src/extensions/statistics-extension.cc
index 222820e0ac6db2658c8e6641209eba094c42406a..53370206346bfa5d15ac4416acad8525a21175cb 100644
--- a/src/extensions/statistics-extension.cc
+++ b/src/extensions/statistics-extension.cc
@@ -120,16 +120,20 @@ void StatisticsExtension::GetCounters(
{heap->memory_allocator()->Size(), "total_committed_bytes"},
{heap->new_space()->Size(), "new_space_live_bytes"},
{heap->new_space()->Available(), "new_space_available_bytes"},
- {heap->new_space()->CommittedMemory(), "new_space_commited_bytes"},
+ {static_cast<intptr_t>(heap->new_space()->CommittedMemory()),
+ "new_space_commited_bytes"},
{heap->old_space()->Size(), "old_space_live_bytes"},
{heap->old_space()->Available(), "old_space_available_bytes"},
- {heap->old_space()->CommittedMemory(), "old_space_commited_bytes"},
+ {static_cast<intptr_t>(heap->old_space()->CommittedMemory()),
+ "old_space_commited_bytes"},
{heap->code_space()->Size(), "code_space_live_bytes"},
{heap->code_space()->Available(), "code_space_available_bytes"},
- {heap->code_space()->CommittedMemory(), "code_space_commited_bytes"},
+ {static_cast<intptr_t>(heap->code_space()->CommittedMemory()),
+ "code_space_commited_bytes"},
{heap->lo_space()->Size(), "lo_space_live_bytes"},
{heap->lo_space()->Available(), "lo_space_available_bytes"},
- {heap->lo_space()->CommittedMemory(), "lo_space_commited_bytes"},
+ {static_cast<intptr_t>(heap->lo_space()->CommittedMemory()),
+ "lo_space_commited_bytes"},
};
for (size_t i = 0; i < arraysize(numbers); i++) {
« no previous file with comments | « no previous file | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698