68 // update this summary with current data from various places
69 void update();
70
71 public:
72 G1RemSetSummary() : _remset(NULL), _num_refined_cards(0),
73 _num_processed_buf_mutator(0), _num_processed_buf_rs_threads(0), _num_coarsenings(0),
74 _rs_threads_vtimes(NULL), _num_vtimes(0), _sampling_thread_vtime(0.0f) {
75 }
76
77 ~G1RemSetSummary() {
78 free_and_null();
79 }
80
81 // set the counters in this summary to the values of the others
82 void set(G1RemSetSummary* other);
83 // subtract all counters from the other summary, and set them in the current
84 void subtract_from(G1RemSetSummary* other);
85
86 // initialize and get the first sampling
87 void initialize(G1RemSet* remset);
88
89 void print_on(outputStream* out);
90
91 double rs_thread_vtime(uint thread) const;
92
93 double sampling_thread_vtime() const {
94 return _sampling_thread_vtime;
95 }
96
97 size_t num_concurrent_refined_cards() const {
98 return _num_refined_cards;
99 }
100
101 size_t num_processed_buf_mutator() const {
102 return _num_processed_buf_mutator;
103 }
104
105 size_t num_processed_buf_rs_threads() const {
106 return _num_processed_buf_rs_threads;
107 }
|
68 // update this summary with current data from various places
69 void update();
70
71 public:
72 G1RemSetSummary() : _remset(NULL), _num_refined_cards(0),
73 _num_processed_buf_mutator(0), _num_processed_buf_rs_threads(0), _num_coarsenings(0),
74 _rs_threads_vtimes(NULL), _num_vtimes(0), _sampling_thread_vtime(0.0f) {
75 }
76
77 ~G1RemSetSummary() {
78 free_and_null();
79 }
80
81 // set the counters in this summary to the values of the others
82 void set(G1RemSetSummary* other);
83 // subtract all counters from the other summary, and set them in the current
84 void subtract_from(G1RemSetSummary* other);
85
86 // initialize and get the first sampling
87 void initialize(G1RemSet* remset);
88 bool const initialized() { return _rs_threads_vtimes != NULL; }
89
90 void print_on(outputStream* out);
91
92 double rs_thread_vtime(uint thread) const;
93
94 double sampling_thread_vtime() const {
95 return _sampling_thread_vtime;
96 }
97
98 size_t num_concurrent_refined_cards() const {
99 return _num_refined_cards;
100 }
101
102 size_t num_processed_buf_mutator() const {
103 return _num_processed_buf_mutator;
104 }
105
106 size_t num_processed_buf_rs_threads() const {
107 return _num_processed_buf_rs_threads;
108 }
|