Skip to content

Commit 0f3d3c7

Browse files
Aiden Fox Iveyk0kubun
authored andcommitted
ZJIT: Add extra info to rb_zjit_add_frame
1 parent 14fce27 commit 0f3d3c7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

zjit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ rb_zjit_add_frame(VALUE hash, VALUE frame)
5959

6060
rb_hash_aset(frame_info, ID2SYM(rb_intern("name")), name);
6161
rb_hash_aset(frame_info, ID2SYM(rb_intern("file")), file);
62+
rb_hash_aset(frame_info, ID2SYM(rb_intern("samples")), INT2NUM(0));
63+
rb_hash_aset(frame_info, ID2SYM(rb_intern("total_samples")), INT2NUM(0));
64+
rb_hash_aset(frame_info, ID2SYM(rb_intern("edges")), rb_hash_new());
65+
rb_hash_aset(frame_info, ID2SYM(rb_intern("lines")), rb_hash_new());
6266

6367
if (line != INT2FIX(0)) {
6468
rb_hash_aset(frame_info, ID2SYM(rb_intern("line")), line);

0 commit comments

Comments
 (0)