mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +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
|
||||
// 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 {
|
||||
Ok(Some(val)) => {
|
||||
if is_hex_format {
|
||||
println!("{:#x?}", val)
|
||||
} else {
|
||||
println!("{:?}", val)
|
||||
}
|
||||
}
|
||||
Ok(None) => {}
|
||||
Err(e) => {
|
||||
eprintln!("{}", e);
|
||||
process::exit(3);
|
||||
// Print out return value, if any
|
||||
|
||||
match result {
|
||||
Ok(Some(val)) => {
|
||||
if is_hex_format {
|
||||
println!("{:#x?}", val)
|
||||
} else {
|
||||
println!("{:?}", val)
|
||||
}
|
||||
}
|
||||
Ok(None) => {}
|
||||
Err(e) => {
|
||||
eprintln!("{}", e);
|
||||
process::exit(3);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue