< prev index next >

src/hotspot/share/cds/dumpAllocStats.cpp

Print this page

 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.info("Class  CP entries = %6d, archived = %6d (%5.1f%%), reverted = %6d",
106            _num_klass_cp_entries, _num_klass_cp_entries_archived,
107            percent_of(_num_klass_cp_entries_archived, _num_klass_cp_entries),
108            _num_klass_cp_entries_reverted);
109   msg.info("Field  CP entries = %6d, archived = %6d (%5.1f%%), reverted = %6d",
110            _num_field_cp_entries, _num_field_cp_entries_archived,
111            percent_of(_num_field_cp_entries_archived, _num_field_cp_entries),
112            _num_field_cp_entries_reverted);
113 }














 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.info("Class  CP entries = %6d, archived = %6d (%5.1f%%), reverted = %6d",
106            _num_klass_cp_entries, _num_klass_cp_entries_archived,
107            percent_of(_num_klass_cp_entries_archived, _num_klass_cp_entries),
108            _num_klass_cp_entries_reverted);
109   msg.info("Field  CP entries = %6d, archived = %6d (%5.1f%%), reverted = %6d",
110            _num_field_cp_entries, _num_field_cp_entries_archived,
111            percent_of(_num_field_cp_entries_archived, _num_field_cp_entries),
112            _num_field_cp_entries_reverted);
113 }
114 
115 #ifdef ASSERT
116 void DumpAllocStats::verify(int expected_byte_size, bool read_only) const {
117   int bytes = 0;
118   const int what = (int)(read_only ? RO : RW);
119   for (int type = 0; type < int(_number_of_types); type ++) {
120     bytes += _bytes[what][type];
121   }
122   assert(bytes == expected_byte_size, "counter mismatch (%s: %d vs %d)",
123          (read_only ? "RO" : "RW"), bytes, expected_byte_size);
124 }
125 #endif // ASSERT
126 
< prev index next >