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

Side by Side Diff: src/heap.h

Issue 290133004: Print promotion rate and semi-space copy rate in --trace-gc-nvp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')
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 "allocation.h" 10 #include "allocation.h"
(...skipping 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after
2597 // Sets the GC count. 2597 // Sets the GC count.
2598 void set_gc_count(unsigned int count) { gc_count_ = count; } 2598 void set_gc_count(unsigned int count) { gc_count_ = count; }
2599 2599
2600 // Sets the full GC count. 2600 // Sets the full GC count.
2601 void set_full_gc_count(int count) { full_gc_count_ = count; } 2601 void set_full_gc_count(int count) { full_gc_count_ = count; }
2602 2602
2603 void increment_promoted_objects_size(int object_size) { 2603 void increment_promoted_objects_size(int object_size) {
2604 promoted_objects_size_ += object_size; 2604 promoted_objects_size_ += object_size;
2605 } 2605 }
2606 2606
2607 void increment_semi_space_copied_object_size(int object_size) {
2608 semi_space_copied_object_size_ += object_size;
2609 }
2610
2607 void increment_nodes_died_in_new_space() { 2611 void increment_nodes_died_in_new_space() {
2608 nodes_died_in_new_space_++; 2612 nodes_died_in_new_space_++;
2609 } 2613 }
2610 2614
2611 void increment_nodes_copied_in_new_space() { 2615 void increment_nodes_copied_in_new_space() {
2612 nodes_copied_in_new_space_++; 2616 nodes_copied_in_new_space_++;
2613 } 2617 }
2614 2618
2615 void increment_nodes_promoted() { 2619 void increment_nodes_promoted() {
2616 nodes_promoted_++; 2620 nodes_promoted_++;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2653 // collection and the end of the previous collection. 2657 // collection and the end of the previous collection.
2654 intptr_t allocated_since_last_gc_; 2658 intptr_t allocated_since_last_gc_;
2655 2659
2656 // Amount of time spent in mutator that is time elapsed between end of the 2660 // Amount of time spent in mutator that is time elapsed between end of the
2657 // previous collection and the beginning of the current one. 2661 // previous collection and the beginning of the current one.
2658 double spent_in_mutator_; 2662 double spent_in_mutator_;
2659 2663
2660 // Size of objects promoted during the current collection. 2664 // Size of objects promoted during the current collection.
2661 intptr_t promoted_objects_size_; 2665 intptr_t promoted_objects_size_;
2662 2666
2667 // Size of objects copied to the other semi-space during the current
2668 // collection.
2669 intptr_t semi_space_copied_object_size_;
2670
2663 // Number of died nodes in the new space. 2671 // Number of died nodes in the new space.
2664 int nodes_died_in_new_space_; 2672 int nodes_died_in_new_space_;
2665 2673
2666 // Number of copied nodes to the new space. 2674 // Number of copied nodes to the new space.
2667 int nodes_copied_in_new_space_; 2675 int nodes_copied_in_new_space_;
2668 2676
2669 // Number of promoted nodes to the old space. 2677 // Number of promoted nodes to the old space.
2670 int nodes_promoted_; 2678 int nodes_promoted_;
2671 2679
2672 // Incremental marking steps counters. 2680 // Incremental marking steps counters.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2826 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2819 2827
2820 private: 2828 private:
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2829 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2822 }; 2830 };
2823 #endif // DEBUG 2831 #endif // DEBUG
2824 2832
2825 } } // namespace v8::internal 2833 } } // namespace v8::internal
2826 2834
2827 #endif // V8_HEAP_H_ 2835 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698