mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
wasm_interp: remove leftover code from profiling
This commit is contained in:
parent
96d9ceee8f
commit
1a14dbba19
1 changed files with 14 additions and 17 deletions
|
@ -94,27 +94,24 @@ fn main() -> io::Result<()> {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Run
|
// Run
|
||||||
// let end= 10000;
|
|
||||||
let end = 1;
|
|
||||||
for _ in 0..end {
|
|
||||||
let result = inst.call_export_from_cli(&module, start_fn_name, &wasi_argv);
|
|
||||||
|
|
||||||
// Print out return value, if any
|
let result = inst.call_export_from_cli(&module, start_fn_name, &wasi_argv);
|
||||||
|
|
||||||
match result {
|
// Print out return value, if any
|
||||||
Ok(Some(val)) => {
|
|
||||||
if is_hex_format {
|
match result {
|
||||||
println!("{:#x?}", val)
|
Ok(Some(val)) => {
|
||||||
} else {
|
if is_hex_format {
|
||||||
println!("{:?}", val)
|
println!("{:#x?}", val)
|
||||||
}
|
} else {
|
||||||
}
|
println!("{:?}", val)
|
||||||
Ok(None) => {}
|
|
||||||
Err(e) => {
|
|
||||||
eprintln!("{}", e);
|
|
||||||
process::exit(3);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Ok(None) => {}
|
||||||
|
Err(e) => {
|
||||||
|
eprintln!("{}", e);
|
||||||
|
process::exit(3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue