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

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

Issue 15012016: small misspelling fixes. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.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 // 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADD_COUNTER) 101 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADD_COUNTER)
102 #undef ADD_COUNTER 102 #undef ADD_COUNTER
103 103
104 AddNumber(result, isolate->memory_allocator()->Size(), 104 AddNumber(result, isolate->memory_allocator()->Size(),
105 "total_committed_bytes"); 105 "total_committed_bytes");
106 AddNumber(result, heap->new_space()->Size(), 106 AddNumber(result, heap->new_space()->Size(),
107 "new_space_live_bytes"); 107 "new_space_live_bytes");
108 AddNumber(result, heap->new_space()->Available(), 108 AddNumber(result, heap->new_space()->Available(),
109 "new_space_available_bytes"); 109 "new_space_available_bytes");
110 AddNumber(result, heap->new_space()->CommittedMemory(), 110 AddNumber(result, heap->new_space()->CommittedMemory(),
111 "new_space_commited_bytes"); 111 "new_space_committed_bytes");
112 AddNumber(result, heap->old_pointer_space()->Size(), 112 AddNumber(result, heap->old_pointer_space()->Size(),
113 "old_pointer_space_live_bytes"); 113 "old_pointer_space_live_bytes");
114 AddNumber(result, heap->old_pointer_space()->Available(), 114 AddNumber(result, heap->old_pointer_space()->Available(),
115 "old_pointer_space_available_bytes"); 115 "old_pointer_space_available_bytes");
116 AddNumber(result, heap->old_pointer_space()->CommittedMemory(), 116 AddNumber(result, heap->old_pointer_space()->CommittedMemory(),
117 "old_pointer_space_commited_bytes"); 117 "old_pointer_space_committed_bytes");
118 AddNumber(result, heap->old_data_space()->Size(), 118 AddNumber(result, heap->old_data_space()->Size(),
119 "old_data_space_live_bytes"); 119 "old_data_space_live_bytes");
120 AddNumber(result, heap->old_data_space()->Available(), 120 AddNumber(result, heap->old_data_space()->Available(),
121 "old_data_space_available_bytes"); 121 "old_data_space_available_bytes");
122 AddNumber(result, heap->old_data_space()->CommittedMemory(), 122 AddNumber(result, heap->old_data_space()->CommittedMemory(),
123 "old_data_space_commited_bytes"); 123 "old_data_space_committed_bytes");
124 AddNumber(result, heap->code_space()->Size(), 124 AddNumber(result, heap->code_space()->Size(),
125 "code_space_live_bytes"); 125 "code_space_live_bytes");
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_committed_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_committed_bytes");
136 AddNumber(result, heap->lo_space()->Size(), 136 AddNumber(result, heap->lo_space()->Size(),
137 "lo_space_live_bytes"); 137 "lo_space_live_bytes");
138 AddNumber(result, heap->lo_space()->Available(), 138 AddNumber(result, heap->lo_space()->Available(),
139 "lo_space_available_bytes"); 139 "lo_space_available_bytes");
140 AddNumber(result, heap->lo_space()->CommittedMemory(), 140 AddNumber(result, heap->lo_space()->CommittedMemory(),
141 "lo_space_commited_bytes"); 141 "lo_space_committed_bytes");
142 AddNumber(result, heap->amount_of_external_allocated_memory(), 142 AddNumber(result, heap->amount_of_external_allocated_memory(),
143 "amount_of_external_allocated_memory"); 143 "amount_of_external_allocated_memory");
144 return result; 144 return result;
145 } 145 }
146 146
147 147
148 void StatisticsExtension::Register() { 148 void StatisticsExtension::Register() {
149 static StatisticsExtension statistics_extension; 149 static StatisticsExtension statistics_extension;
150 static v8::DeclareExtension declaration(&statistics_extension); 150 static v8::DeclareExtension declaration(&statistics_extension);
151 } 151 }
152 152
153 } } // namespace v8::internal 153 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698