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/heap/heap.h

Issue 1125683004: Add aggregated memory histograms. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comments Created 5 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
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 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 bool inline_allocation_disabled() { return inline_allocation_disabled_; } 1139 bool inline_allocation_disabled() { return inline_allocation_disabled_; }
1140 1140
1141 // Switch whether inline bump-pointer allocation should be used. 1141 // Switch whether inline bump-pointer allocation should be used.
1142 void EnableInlineAllocation(); 1142 void EnableInlineAllocation();
1143 void DisableInlineAllocation(); 1143 void DisableInlineAllocation();
1144 1144
1145 // Implements the corresponding V8 API function. 1145 // Implements the corresponding V8 API function.
1146 bool IdleNotification(double deadline_in_seconds); 1146 bool IdleNotification(double deadline_in_seconds);
1147 bool IdleNotification(int idle_time_in_ms); 1147 bool IdleNotification(int idle_time_in_ms);
1148 1148
1149 double MonotonicallyIncreasingTimeInMs();
1150
1149 // Declare all the root indices. This defines the root list order. 1151 // Declare all the root indices. This defines the root list order.
1150 enum RootListIndex { 1152 enum RootListIndex {
1151 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex, 1153 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex,
1152 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION) 1154 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION)
1153 #undef ROOT_INDEX_DECLARATION 1155 #undef ROOT_INDEX_DECLARATION
1154 1156
1155 #define STRING_INDEX_DECLARATION(name, str) k##name##RootIndex, 1157 #define STRING_INDEX_DECLARATION(name, str) k##name##RootIndex,
1156 INTERNALIZED_STRING_LIST(STRING_INDEX_DECLARATION) 1158 INTERNALIZED_STRING_LIST(STRING_INDEX_DECLARATION)
1157 #undef STRING_DECLARATION 1159 #undef STRING_DECLARATION
1158 1160
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2608 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2610 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2609 2611
2610 private: 2612 private:
2611 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2613 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2612 }; 2614 };
2613 #endif // DEBUG 2615 #endif // DEBUG
2614 } 2616 }
2615 } // namespace v8::internal 2617 } // namespace v8::internal
2616 2618
2617 #endif // V8_HEAP_HEAP_H_ 2619 #endif // V8_HEAP_HEAP_H_
OLDNEW
« src/counters.h ('K') | « src/heap/gc-tracer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698