Skip to content

Commit 38ff26a

Browse files
nickysnalehander92
authored andcommitted
feat: support TraceLowLevelEvent::CompoundValue in write_trace()
1 parent 088c566 commit 38ff26a

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
@@ -423,7 +423,13 @@ pub fn write_trace(q: &[crate::TraceLowLevelEvent], output: &mut impl std::io::W
423423
let mut ret = event.init_drop_variable();
424424
ret.set_i(varid.0.try_into().unwrap());
425425
}
426-
TraceLowLevelEvent::CompoundValue(cvr) => todo!(),
426+
TraceLowLevelEvent::CompoundValue(cvr) => {
427+
let mut ret = event.init_compound_value();
428+
let mut ret_place = ret.reborrow().init_place();
429+
ret_place.set_p(cvr.place.0.try_into().unwrap());
430+
let ret_value = ret.init_value();
431+
conv_valuerecord(ret_value, &cvr.value);
432+
}
427433
TraceLowLevelEvent::CellValue(cvr) => todo!(),
428434
TraceLowLevelEvent::AssignCompoundItem(aci) => todo!(),
429435
TraceLowLevelEvent::AssignCell(acr) => todo!(),

0 commit comments

Comments
 (0)