OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 AddNumber(result, heap->code_space()->Available(), | 126 AddNumber(result, heap->code_space()->Available(), |
127 "code_space_available_bytes"); | 127 "code_space_available_bytes"); |
128 AddNumber(result, heap->code_space()->CommittedMemory(), | 128 AddNumber(result, heap->code_space()->CommittedMemory(), |
129 "code_space_commited_bytes"); | 129 "code_space_commited_bytes"); |
130 AddNumber(result, heap->cell_space()->Size(), | 130 AddNumber(result, heap->cell_space()->Size(), |
131 "cell_space_live_bytes"); | 131 "cell_space_live_bytes"); |
132 AddNumber(result, heap->cell_space()->Available(), | 132 AddNumber(result, heap->cell_space()->Available(), |
133 "cell_space_available_bytes"); | 133 "cell_space_available_bytes"); |
134 AddNumber(result, heap->cell_space()->CommittedMemory(), | 134 AddNumber(result, heap->cell_space()->CommittedMemory(), |
135 "cell_space_commited_bytes"); | 135 "cell_space_commited_bytes"); |
| 136 AddNumber(result, heap->property_cell_space()->Size(), |
| 137 "property_cell_space_live_bytes"); |
| 138 AddNumber(result, heap->property_cell_space()->Available(), |
| 139 "property_cell_space_available_bytes"); |
| 140 AddNumber(result, heap->property_cell_space()->CommittedMemory(), |
| 141 "property_cell_space_commited_bytes"); |
136 AddNumber(result, heap->lo_space()->Size(), | 142 AddNumber(result, heap->lo_space()->Size(), |
137 "lo_space_live_bytes"); | 143 "lo_space_live_bytes"); |
138 AddNumber(result, heap->lo_space()->Available(), | 144 AddNumber(result, heap->lo_space()->Available(), |
139 "lo_space_available_bytes"); | 145 "lo_space_available_bytes"); |
140 AddNumber(result, heap->lo_space()->CommittedMemory(), | 146 AddNumber(result, heap->lo_space()->CommittedMemory(), |
141 "lo_space_commited_bytes"); | 147 "lo_space_commited_bytes"); |
142 AddNumber(result, heap->amount_of_external_allocated_memory(), | 148 AddNumber(result, heap->amount_of_external_allocated_memory(), |
143 "amount_of_external_allocated_memory"); | 149 "amount_of_external_allocated_memory"); |
144 args.GetReturnValue().Set(result); | 150 args.GetReturnValue().Set(result); |
145 } | 151 } |
146 | 152 |
147 | 153 |
148 void StatisticsExtension::Register() { | 154 void StatisticsExtension::Register() { |
149 static StatisticsExtension statistics_extension; | 155 static StatisticsExtension statistics_extension; |
150 static v8::DeclareExtension declaration(&statistics_extension); | 156 static v8::DeclareExtension declaration(&statistics_extension); |
151 } | 157 } |
152 | 158 |
153 } } // namespace v8::internal | 159 } } // namespace v8::internal |
OLD | NEW |