15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_G1_G1REMSETSUMMARY_HPP
26 #define SHARE_VM_GC_G1_G1REMSETSUMMARY_HPP
27
28 #include "utilities/globalDefinitions.hpp"
29 #include "utilities/ostream.hpp"
30
31 class G1RemSet;
32
33 // A G1RemSetSummary manages statistical information about the G1RemSet
34
35 class G1RemSetSummary VALUE_OBJ_CLASS_SPEC {
36 private:
37 friend class GetRSThreadVTimeClosure;
38
39 G1RemSet* _rem_set;
40
41 size_t _num_conc_refined_cards;
42 size_t _num_processed_buf_mutator;
43 size_t _num_processed_buf_rs_threads;
44
45 size_t _num_coarsenings;
46
47 size_t _num_vtimes;
48 double* _rs_threads_vtimes;
49
50 double _sampling_thread_vtime;
51
52 void set_rs_thread_vtime(uint thread, double value);
53 void set_sampling_thread_vtime(double value) {
54 _sampling_thread_vtime = value;
55 }
|
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_G1_G1REMSETSUMMARY_HPP
26 #define SHARE_VM_GC_G1_G1REMSETSUMMARY_HPP
27
28 #include "utilities/globalDefinitions.hpp"
29 #include "utilities/ostream.hpp"
30
31 class G1RemSet;
32
33 // A G1RemSetSummary manages statistical information about the G1RemSet
34
35 class G1RemSetSummary {
36 private:
37 friend class GetRSThreadVTimeClosure;
38
39 G1RemSet* _rem_set;
40
41 size_t _num_conc_refined_cards;
42 size_t _num_processed_buf_mutator;
43 size_t _num_processed_buf_rs_threads;
44
45 size_t _num_coarsenings;
46
47 size_t _num_vtimes;
48 double* _rs_threads_vtimes;
49
50 double _sampling_thread_vtime;
51
52 void set_rs_thread_vtime(uint thread, double value);
53 void set_sampling_thread_vtime(double value) {
54 _sampling_thread_vtime = value;
55 }
|