90
91 msg.debug("%s", sep);
92 msg.debug(fmt_stats, "Total",
93 all_ro_count, all_ro_bytes, all_ro_perc,
94 all_rw_count, all_rw_bytes, all_rw_perc,
95 all_count, all_bytes, all_perc);
96
97 msg.flush();
98
99 assert(all_ro_bytes == ro_all && all_rw_bytes == rw_all,
100 "everything should have been counted (used/counted: ro %d/%d, rw %d/%d",
101 ro_all, all_ro_bytes, rw_all, all_rw_bytes);
102
103 #undef fmt_stats
104
105 msg.debug("Class CP entries = %d, archived = %d (%3.1f%%)",
106 _num_klass_cp_entries, _num_klass_cp_entries_archived,
107 percent_of(_num_klass_cp_entries_archived, _num_klass_cp_entries));
108
109 }
|
90
91 msg.debug("%s", sep);
92 msg.debug(fmt_stats, "Total",
93 all_ro_count, all_ro_bytes, all_ro_perc,
94 all_rw_count, all_rw_bytes, all_rw_perc,
95 all_count, all_bytes, all_perc);
96
97 msg.flush();
98
99 assert(all_ro_bytes == ro_all && all_rw_bytes == rw_all,
100 "everything should have been counted (used/counted: ro %d/%d, rw %d/%d",
101 ro_all, all_ro_bytes, rw_all, all_rw_bytes);
102
103 #undef fmt_stats
104
105 msg.debug("Class CP entries = %d, archived = %d (%3.1f%%)",
106 _num_klass_cp_entries, _num_klass_cp_entries_archived,
107 percent_of(_num_klass_cp_entries_archived, _num_klass_cp_entries));
108
109 }
110
111 #ifdef ASSERT
112 void DumpAllocStats::verify(int expected_byte_size, bool read_only) const {
113 int bytes = 0;
114 const int what = (int)(read_only ? RO : RW);
115 for (int type = 0; type < int(_number_of_types); type ++) {
116 bytes += _bytes[what][type];
117 }
118 assert(bytes == expected_byte_size, "counter mismatch (%s: %d vs %d)",
119 (read_only ? "RO" : "RW"), bytes, expected_byte_size);
120 }
121 #endif // ASSERT
122
|