Print machine logs (debug trace)
This may be made optional with a --verbose flag, but usually the user wants to see all invocations of the Trace command
This commit is contained in:
parent
c88e5df8b1
commit
9b491b3777
|
@ -97,7 +97,7 @@ fn main() -> anyhow::Result<()> {
|
||||||
Program::<NamedDeBruijn>::try_from(prog)?
|
Program::<NamedDeBruijn>::try_from(prog)?
|
||||||
};
|
};
|
||||||
|
|
||||||
let (term, cost, _logs) = program.eval();
|
let (term, cost, logs) = program.eval();
|
||||||
|
|
||||||
match term {
|
match term {
|
||||||
Ok(term) => {
|
Ok(term) => {
|
||||||
|
@ -121,6 +121,10 @@ fn main() -> anyhow::Result<()> {
|
||||||
"\nBudget\n------\ncpu: {}\nmemory: {}\n",
|
"\nBudget\n------\ncpu: {}\nmemory: {}\n",
|
||||||
cost.cpu, cost.mem
|
cost.cpu, cost.mem
|
||||||
);
|
);
|
||||||
|
println!(
|
||||||
|
"\nLogs\n----\n{}",
|
||||||
|
logs.join("\n")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue