106 _bytes [which][OtherType] += byte_size;
107 }
108
109 void record_cpp_vtables(int byte_size) {
110 _bytes[RW][CppVTablesType] += byte_size;
111 }
112
113 void record_field_cp_entry(bool archived, bool reverted) {
114 _num_field_cp_entries ++;
115 _num_field_cp_entries_archived += archived ? 1 : 0;
116 _num_field_cp_entries_reverted += reverted ? 1 : 0;
117 }
118
119 void record_klass_cp_entry(bool archived, bool reverted) {
120 _num_klass_cp_entries ++;
121 _num_klass_cp_entries_archived += archived ? 1 : 0;
122 _num_klass_cp_entries_reverted += reverted ? 1 : 0;
123 }
124
125 void print_stats(int ro_all, int rw_all);
126 };
127
128 #endif // SHARE_CDS_DUMPALLOCSTATS_HPP
|
106 _bytes [which][OtherType] += byte_size;
107 }
108
109 void record_cpp_vtables(int byte_size) {
110 _bytes[RW][CppVTablesType] += byte_size;
111 }
112
113 void record_field_cp_entry(bool archived, bool reverted) {
114 _num_field_cp_entries ++;
115 _num_field_cp_entries_archived += archived ? 1 : 0;
116 _num_field_cp_entries_reverted += reverted ? 1 : 0;
117 }
118
119 void record_klass_cp_entry(bool archived, bool reverted) {
120 _num_klass_cp_entries ++;
121 _num_klass_cp_entries_archived += archived ? 1 : 0;
122 _num_klass_cp_entries_reverted += reverted ? 1 : 0;
123 }
124
125 void print_stats(int ro_all, int rw_all);
126
127 DEBUG_ONLY(void verify(int expected_byte_size, bool read_only) const);
128
129 };
130
131 #endif // SHARE_CDS_DUMPALLOCSTATS_HPP
|