mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-11 20:21:11 +00:00
Fix formatting in wasm_dump_perf_profiling (#2799)
Changes %d to %PRIu32.
This commit is contained in:
parent
103cb89593
commit
9ad42290d8
|
@ -2967,13 +2967,13 @@ aot_dump_perf_profiling(const AOTModuleInstance *module_inst)
|
|||
if (func_name)
|
||||
os_printf(
|
||||
" func %s, execution time: %.3f ms, execution count: %" PRIu32
|
||||
"times\n",
|
||||
" times\n",
|
||||
func_name, perf_prof->total_exec_time / 1000.0f,
|
||||
perf_prof->total_exec_cnt);
|
||||
else
|
||||
os_printf(" func %" PRIu32
|
||||
", execution time: %.3f ms, execution count: %" PRIu32
|
||||
"times\n",
|
||||
" times\n",
|
||||
i, perf_prof->total_exec_time / 1000.0f,
|
||||
perf_prof->total_exec_cnt);
|
||||
}
|
||||
|
|
|
@ -2419,14 +2419,16 @@ wasm_dump_perf_profiling(const WASMModuleInstance *module_inst)
|
|||
}
|
||||
|
||||
if (func_name)
|
||||
os_printf(" func %s, execution time: %.3f ms, execution count: %d "
|
||||
"times\n",
|
||||
func_name,
|
||||
module_inst->e->functions[i].total_exec_time / 1000.0f,
|
||||
module_inst->e->functions[i].total_exec_cnt);
|
||||
os_printf(
|
||||
" func %s, execution time: %.3f ms, execution count: %" PRIu32
|
||||
" times\n",
|
||||
func_name,
|
||||
module_inst->e->functions[i].total_exec_time / 1000.0f,
|
||||
module_inst->e->functions[i].total_exec_cnt);
|
||||
else
|
||||
os_printf(" func %d, execution time: %.3f ms, execution count: %d "
|
||||
"times\n",
|
||||
os_printf(" func %" PRIu32
|
||||
", execution time: %.3f ms, execution count: %" PRIu32
|
||||
" times\n",
|
||||
i, module_inst->e->functions[i].total_exec_time / 1000.0f,
|
||||
module_inst->e->functions[i].total_exec_cnt);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user