Skip to content

Commit ecfc0b3

Browse files
nickysnalehander92
authored andcommitted
feat: support TraceLowLevelEvent::VariableCell in write_trace()
1 parent d4d7bb0 commit ecfc0b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

runtime_tracing/src/capnptrace.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,13 @@ pub fn write_trace(q: &[crate::TraceLowLevelEvent], output: &mut impl std::io::W
452452
let mut ret_item_place = ret.init_item_place();
453453
ret_item_place.set_p(aci.item_place.0.try_into().unwrap());
454454
}
455-
TraceLowLevelEvent::VariableCell(vcr) => todo!(),
455+
TraceLowLevelEvent::VariableCell(vcr) => {
456+
let mut ret = event.init_variable_cell();
457+
let mut ret_variable_id = ret.reborrow().init_variable_id();
458+
ret_variable_id.set_i(vcr.variable_id.0.try_into().unwrap());
459+
let mut ret_place = ret.init_place();
460+
ret_place.set_p(vcr.place.0.try_into().unwrap());
461+
}
456462
}
457463
}
458464

0 commit comments

Comments
 (0)