| 1151 | }; |
| 1152 | |
| 1153 | inline void clear_a_store() |
| 1154 | { |
| 1155 | store::a_current_event_id.clear(); |
| 1156 | store::a_current_event_id.shrink_to_fit(); |
| 1157 | |
| 1158 | store::a_current_event_cnt.clear(); |
| 1159 | store::a_current_event_cnt.shrink_to_fit(); |
| 1160 | |
| 1161 | store::a_string_id.clear(); |
| 1162 | store::a_string_id.shrink_to_fit(); |
| 1163 | |
| 1164 | store::a_events.clear(); |
| 1165 | store::a_events.shrink_to_fit(); |
| 1166 | |
| 1167 | store::a_sub_events.clear(); |
| 1168 | store::a_sub_events.shrink_to_fit(); |
| 1169 | |
| 1170 | store::thread_cnt = -1; |
| 1171 | for (auto &entry : store::a_thread_ids) |
| 1172 | { |
| 1173 | entry = -1; |
| 1174 | } |
| 1175 | |
| 1176 | event_ptr = nullptr; |
| 1177 | sub_events_ptr = nullptr; |
| 1178 | current_event_id = nullptr; |
| 1179 | current_event_cnt = nullptr; |
| 1180 | string_id = nullptr; |
| 1181 | thread_id = nullptr; |
| 1182 | |
| 1183 | store::store_clear_cnt++; |
| 1184 | store::track_start_time = std::chrono::high_resolution_clock::now(); |
| 1185 | } |
| 1186 | |
| 1187 | inline ctrack_result calc_stats_and_clear(ctrack_result_settings settings = {}) |
| 1188 | { |
no outgoing calls
no test coverage detected