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

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

Issue 2085893002: [heap] Internalize kExternalAllocationLimit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Initialize limit Created 4 years, 6 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 | « include/v8.h ('k') | src/globals.h » ('j') | no next file with comments »
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 {heap->code_space()->CommittedMemory(), "code_space_commited_bytes"}, 128 {heap->code_space()->CommittedMemory(), "code_space_commited_bytes"},
129 {heap->lo_space()->Size(), "lo_space_live_bytes"}, 129 {heap->lo_space()->Size(), "lo_space_live_bytes"},
130 {heap->lo_space()->Available(), "lo_space_available_bytes"}, 130 {heap->lo_space()->Available(), "lo_space_available_bytes"},
131 {heap->lo_space()->CommittedMemory(), "lo_space_commited_bytes"}, 131 {heap->lo_space()->CommittedMemory(), "lo_space_commited_bytes"},
132 }; 132 };
133 133
134 for (size_t i = 0; i < arraysize(numbers); i++) { 134 for (size_t i = 0; i < arraysize(numbers); i++) {
135 AddNumber(args.GetIsolate(), result, numbers[i].number, numbers[i].name); 135 AddNumber(args.GetIsolate(), result, numbers[i].number, numbers[i].name);
136 } 136 }
137 137
138 AddNumber64(args.GetIsolate(), result, 138 AddNumber64(args.GetIsolate(), result, heap->external_memory(),
139 heap->amount_of_external_allocated_memory(),
140 "amount_of_external_allocated_memory"); 139 "amount_of_external_allocated_memory");
141 args.GetReturnValue().Set(result); 140 args.GetReturnValue().Set(result);
142 } 141 }
143 142
144 } // namespace internal 143 } // namespace internal
145 } // namespace v8 144 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698