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

Side by Side Diff: src/heap.h

Issue 432743002: Clean-up and repair cumulative marking and sweeping time stats. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/gc-tracer.cc ('k') | src/heap.cc » ('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 #ifndef V8_HEAP_H_ 5 #ifndef V8_HEAP_H_
6 #define V8_HEAP_H_ 6 #define V8_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 1239
1240 // Returns maximum GC pause. 1240 // Returns maximum GC pause.
1241 double get_max_gc_pause() { return max_gc_pause_; } 1241 double get_max_gc_pause() { return max_gc_pause_; }
1242 1242
1243 // Returns maximum size of objects alive after GC. 1243 // Returns maximum size of objects alive after GC.
1244 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; } 1244 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; }
1245 1245
1246 // Returns minimal interval between two subsequent collections. 1246 // Returns minimal interval between two subsequent collections.
1247 double get_min_in_mutator() { return min_in_mutator_; } 1247 double get_min_in_mutator() { return min_in_mutator_; }
1248 1248
1249 // TODO(hpayer): remove, should be handled by GCTracer
1250 void AddMarkingTime(double marking_time) {
1251 marking_time_ += marking_time;
1252 }
1253
1254 double marking_time() const {
1255 return marking_time_;
1256 }
1257
1258 // TODO(hpayer): remove, should be handled by GCTracer
1259 void AddSweepingTime(double sweeping_time) {
1260 sweeping_time_ += sweeping_time;
1261 }
1262
1263 double sweeping_time() const {
1264 return sweeping_time_;
1265 }
1266
1267 MarkCompactCollector* mark_compact_collector() { 1249 MarkCompactCollector* mark_compact_collector() {
1268 return &mark_compact_collector_; 1250 return &mark_compact_collector_;
1269 } 1251 }
1270 1252
1271 StoreBuffer* store_buffer() { 1253 StoreBuffer* store_buffer() {
1272 return &store_buffer_; 1254 return &store_buffer_;
1273 } 1255 }
1274 1256
1275 Marking* marking() { 1257 Marking* marking() {
1276 return &marking_; 1258 return &marking_;
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2639 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2621 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2640 2622
2641 private: 2623 private:
2642 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2624 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2643 }; 2625 };
2644 #endif // DEBUG 2626 #endif // DEBUG
2645 2627
2646 } } // namespace v8::internal 2628 } } // namespace v8::internal
2647 2629
2648 #endif // V8_HEAP_H_ 2630 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/gc-tracer.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698