Chromium Code Reviews| 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 2539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2550 // Sets the GC count. | 2550 // Sets the GC count. |
| 2551 void set_gc_count(unsigned int count) { gc_count_ = count; } | 2551 void set_gc_count(unsigned int count) { gc_count_ = count; } |
| 2552 | 2552 |
| 2553 // Sets the full GC count. | 2553 // Sets the full GC count. |
| 2554 void set_full_gc_count(int count) { full_gc_count_ = count; } | 2554 void set_full_gc_count(int count) { full_gc_count_ = count; } |
| 2555 | 2555 |
| 2556 void increment_promoted_objects_size(int object_size) { | 2556 void increment_promoted_objects_size(int object_size) { |
| 2557 promoted_objects_size_ += object_size; | 2557 promoted_objects_size_ += object_size; |
| 2558 } | 2558 } |
| 2559 | 2559 |
| 2560 void increment_died_nodes_in_new_space() { | |
| 2561 died_nodes_in_new_space_++; | |
| 2562 } | |
| 2563 | |
| 2564 void increment_copied_nodes_in_new_space() { | |
| 2565 copied_nodes_in_new_space_++; | |
| 2566 } | |
| 2567 | |
| 2568 void increment_promoted_nodes() { | |
| 2569 promoted_nodes_++; | |
| 2570 } | |
| 2571 | |
| 2560 private: | 2572 private: |
| 2561 // Returns a string matching the collector. | 2573 // Returns a string matching the collector. |
| 2562 const char* CollectorString(); | 2574 const char* CollectorString(); |
| 2563 | 2575 |
| 2564 // Returns size of object in heap (in MB). | 2576 // Returns size of object in heap (in MB). |
| 2565 inline double SizeOfHeapObjects(); | 2577 inline double SizeOfHeapObjects(); |
| 2566 | 2578 |
| 2567 // Timestamp set in the constructor. | 2579 // Timestamp set in the constructor. |
| 2568 double start_time_; | 2580 double start_time_; |
| 2569 | 2581 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 2594 // collection and the end of the previous collection. | 2606 // collection and the end of the previous collection. |
| 2595 intptr_t allocated_since_last_gc_; | 2607 intptr_t allocated_since_last_gc_; |
| 2596 | 2608 |
| 2597 // Amount of time spent in mutator that is time elapsed between end of the | 2609 // Amount of time spent in mutator that is time elapsed between end of the |
| 2598 // previous collection and the beginning of the current one. | 2610 // previous collection and the beginning of the current one. |
| 2599 double spent_in_mutator_; | 2611 double spent_in_mutator_; |
| 2600 | 2612 |
| 2601 // Size of objects promoted during the current collection. | 2613 // Size of objects promoted during the current collection. |
| 2602 intptr_t promoted_objects_size_; | 2614 intptr_t promoted_objects_size_; |
| 2603 | 2615 |
| 2616 // Number of died nodes in the new space. | |
| 2617 int died_nodes_in_new_space_; | |
|
Michael Starzinger
2012/12/05 14:26:14
Can we rename this to "nodes_died_in_new_space_" s
haraken
2012/12/06 11:08:15
Done.
| |
| 2618 | |
| 2619 // Number of copied nodes to the new space. | |
| 2620 int copied_nodes_in_new_space_; | |
|
Michael Starzinger
2012/12/05 14:26:14
Likewise with "nodes_copied_in_new_space_".
haraken
2012/12/06 11:08:15
Done.
| |
| 2621 | |
| 2622 // Number of promoted nodes to the old space. | |
| 2623 int promoted_nodes_; | |
|
Michael Starzinger
2012/12/05 14:26:14
Likewise with "nodes_promoted_"
haraken
2012/12/06 11:08:15
Done.
| |
| 2624 | |
| 2604 // Incremental marking steps counters. | 2625 // Incremental marking steps counters. |
| 2605 int steps_count_; | 2626 int steps_count_; |
| 2606 double steps_took_; | 2627 double steps_took_; |
| 2607 double longest_step_; | 2628 double longest_step_; |
| 2608 int steps_count_since_last_gc_; | 2629 int steps_count_since_last_gc_; |
| 2609 double steps_took_since_last_gc_; | 2630 double steps_took_since_last_gc_; |
| 2610 | 2631 |
| 2611 Heap* heap_; | 2632 Heap* heap_; |
| 2612 | 2633 |
| 2613 const char* gc_reason_; | 2634 const char* gc_reason_; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2824 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2845 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 2825 | 2846 |
| 2826 private: | 2847 private: |
| 2827 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2848 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2828 }; | 2849 }; |
| 2829 #endif // DEBUG || LIVE_OBJECT_LIST | 2850 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2830 | 2851 |
| 2831 } } // namespace v8::internal | 2852 } } // namespace v8::internal |
| 2832 | 2853 |
| 2833 #endif // V8_HEAP_H_ | 2854 #endif // V8_HEAP_H_ |
| OLD | NEW |