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

Side by Side Diff: src/extensions/statistics-extension.cc

Issue 2395563002: [heap] Use size_t throughout MemoryAllocator (Closed)
Patch Set: Fix compilation Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/gc-tracer.h » ('j') | src/heap/spaces.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/extensions/statistics-extension.h" 5 #include "src/extensions/statistics-extension.h"
6 6
7 #include "src/counters.h" 7 #include "src/counters.h"
8 #include "src/heap/heap-inl.h" 8 #include "src/heap/heap-inl.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 AddCounter(args.GetIsolate(), result, counter_list[i].counter, 110 AddCounter(args.GetIsolate(), result, counter_list[i].counter,
111 counter_list[i].name); 111 counter_list[i].name);
112 } 112 }
113 113
114 struct StatisticNumber { 114 struct StatisticNumber {
115 intptr_t number; 115 intptr_t number;
116 const char* name; 116 const char* name;
117 }; 117 };
118 118
119 const StatisticNumber numbers[] = { 119 const StatisticNumber numbers[] = {
120 {heap->memory_allocator()->Size(), "total_committed_bytes"}, 120 {static_cast<intptr_t>(heap->memory_allocator()->Size()),
121 "total_committed_bytes"},
121 {heap->new_space()->Size(), "new_space_live_bytes"}, 122 {heap->new_space()->Size(), "new_space_live_bytes"},
122 {heap->new_space()->Available(), "new_space_available_bytes"}, 123 {heap->new_space()->Available(), "new_space_available_bytes"},
123 {static_cast<intptr_t>(heap->new_space()->CommittedMemory()), 124 {static_cast<intptr_t>(heap->new_space()->CommittedMemory()),
124 "new_space_commited_bytes"}, 125 "new_space_commited_bytes"},
125 {heap->old_space()->Size(), "old_space_live_bytes"}, 126 {heap->old_space()->Size(), "old_space_live_bytes"},
126 {heap->old_space()->Available(), "old_space_available_bytes"}, 127 {heap->old_space()->Available(), "old_space_available_bytes"},
127 {static_cast<intptr_t>(heap->old_space()->CommittedMemory()), 128 {static_cast<intptr_t>(heap->old_space()->CommittedMemory()),
128 "old_space_commited_bytes"}, 129 "old_space_commited_bytes"},
129 {heap->code_space()->Size(), "code_space_live_bytes"}, 130 {heap->code_space()->Size(), "code_space_live_bytes"},
130 {heap->code_space()->Available(), "code_space_available_bytes"}, 131 {heap->code_space()->Available(), "code_space_available_bytes"},
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 164 }
164 165
165 AddNumber(args.GetIsolate(), result, reloc_info_total, 166 AddNumber(args.GetIsolate(), result, reloc_info_total,
166 "reloc_info_total_size"); 167 "reloc_info_total_size");
167 AddNumber(args.GetIsolate(), result, source_position_table_total, 168 AddNumber(args.GetIsolate(), result, source_position_table_total,
168 "source_position_table_total_size"); 169 "source_position_table_total_size");
169 } 170 }
170 171
171 } // namespace internal 172 } // namespace internal
172 } // namespace v8 173 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/gc-tracer.h » ('j') | src/heap/spaces.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698