@@ -24,7 +24,7 @@ pub struct FrameTable {
24
24
native_symbol_col : Vec < Option < NativeSymbolIndex > > ,
25
25
inline_depth_col : Vec < u16 > ,
26
26
27
- frame_key_set : FastIndexSet < InternalFrameKey > ,
27
+ frame_key_set : FastIndexSet < InternalFrame > ,
28
28
}
29
29
30
30
impl FrameTable {
@@ -38,7 +38,7 @@ impl FrameTable {
38
38
global_libs : & mut GlobalLibTable ,
39
39
string_table : & mut ThreadStringTable ,
40
40
) -> usize {
41
- let ( frame_index, is_new) = self . frame_key_set . insert_full ( frame. frame_key ( ) ) ;
41
+ let ( frame_index, is_new) = self . frame_key_set . insert_full ( frame) ;
42
42
43
43
if !is_new {
44
44
return frame_index;
@@ -162,34 +162,6 @@ pub enum InternalFrameVariant {
162
162
}
163
163
164
164
impl InternalFrame {
165
- pub fn frame_key ( & self ) -> InternalFrameKey {
166
- let InternalFrame {
167
- name,
168
- variant,
169
- subcategory,
170
- file_path,
171
- line,
172
- col,
173
- flags,
174
- } = * self ;
175
- let variant = match variant {
176
- InternalFrameVariant :: Label => InternalFrameKeyVariant :: Label ( LabelFrameKey {
177
- name,
178
- file_path,
179
- line,
180
- col,
181
- } ) ,
182
- InternalFrameVariant :: Native ( native_frame_data) => {
183
- InternalFrameKeyVariant :: Native ( native_frame_data)
184
- }
185
- } ;
186
- InternalFrameKey {
187
- variant,
188
- subcategory,
189
- flags,
190
- }
191
- }
192
-
193
165
pub fn func_key ( & self ) -> FuncKey {
194
166
let InternalFrame {
195
167
name,
@@ -211,27 +183,6 @@ impl InternalFrame {
211
183
}
212
184
}
213
185
214
- #[ derive( Debug , Clone , Copy , PartialOrd , Ord , PartialEq , Eq , Hash ) ]
215
- pub struct InternalFrameKey {
216
- pub variant : InternalFrameKeyVariant ,
217
- pub subcategory : SubcategoryHandle ,
218
- pub flags : FrameFlags ,
219
- }
220
-
221
- #[ derive( Debug , Clone , Copy , PartialOrd , Ord , PartialEq , Eq , Hash ) ]
222
- pub struct LabelFrameKey {
223
- pub name : ThreadInternalStringIndex ,
224
- pub file_path : Option < ThreadInternalStringIndex > ,
225
- pub line : Option < u32 > ,
226
- pub col : Option < u32 > ,
227
- }
228
-
229
- #[ derive( Debug , Clone , Copy , PartialOrd , Ord , PartialEq , Eq , Hash ) ]
230
- pub enum InternalFrameKeyVariant {
231
- Label ( LabelFrameKey ) ,
232
- Native ( NativeFrameData ) ,
233
- }
234
-
235
186
#[ derive( Debug , Clone , PartialOrd , Ord , PartialEq , Eq , Hash ) ]
236
187
pub enum InternalFrameAddress {
237
188
Unknown ( u64 ) ,
0 commit comments