fix graph dump
This commit is contained in:
parent
a99f206e7a
commit
72b76cd1c0
@ -105,7 +105,7 @@ macro_rules! do_dump_stg {
|
||||
let dump_path = $cli.dump_name.clone().unwrap().with_extension(if $c=="" {"dot"} else {$c});
|
||||
println!("Dumping graph to {:?}", &dump_path);
|
||||
let tcb_index = $state.metadata::<GlobalFreeRTOSTraceMetadata>().unwrap().tcb_index().clone();
|
||||
if let Some(md) = $state.named_metadata_map_mut().get_mut::<STGFeedbackState<FreeRTOSSystem>>("stgfeedbackstate") {
|
||||
if let Ok(md) = $state.metadata_mut::<STGFeedbackState<FreeRTOSSystem>>() {
|
||||
let out = md.graph.map(|_i,x| x.color_print(&md.systemstate_index, &tcb_index), |_i,x| x.color_print());
|
||||
let outs = Dot::with_config(&out, &[]).to_string();
|
||||
let outs = outs.replace("\\\"","\"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user