mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-14 05:31:13 +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)
|
if (func_name)
|
||||||
os_printf(
|
os_printf(
|
||||||
" func %s, execution time: %.3f ms, execution count: %" PRIu32
|
" func %s, execution time: %.3f ms, execution count: %" PRIu32
|
||||||
"times\n",
|
" times\n",
|
||||||
func_name, perf_prof->total_exec_time / 1000.0f,
|
func_name, perf_prof->total_exec_time / 1000.0f,
|
||||||
perf_prof->total_exec_cnt);
|
perf_prof->total_exec_cnt);
|
||||||
else
|
else
|
||||||
os_printf(" func %" PRIu32
|
os_printf(" func %" PRIu32
|
||||||
", execution time: %.3f ms, execution count: %" PRIu32
|
", execution time: %.3f ms, execution count: %" PRIu32
|
||||||
"times\n",
|
" times\n",
|
||||||
i, perf_prof->total_exec_time / 1000.0f,
|
i, perf_prof->total_exec_time / 1000.0f,
|
||||||
perf_prof->total_exec_cnt);
|
perf_prof->total_exec_cnt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2419,14 +2419,16 @@ wasm_dump_perf_profiling(const WASMModuleInstance *module_inst)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (func_name)
|
if (func_name)
|
||||||
os_printf(" func %s, execution time: %.3f ms, execution count: %d "
|
os_printf(
|
||||||
"times\n",
|
" func %s, execution time: %.3f ms, execution count: %" PRIu32
|
||||||
|
" times\n",
|
||||||
func_name,
|
func_name,
|
||||||
module_inst->e->functions[i].total_exec_time / 1000.0f,
|
module_inst->e->functions[i].total_exec_time / 1000.0f,
|
||||||
module_inst->e->functions[i].total_exec_cnt);
|
module_inst->e->functions[i].total_exec_cnt);
|
||||||
else
|
else
|
||||||
os_printf(" func %d, execution time: %.3f ms, execution count: %d "
|
os_printf(" func %" PRIu32
|
||||||
"times\n",
|
", execution time: %.3f ms, execution count: %" PRIu32
|
||||||
|
" times\n",
|
||||||
i, module_inst->e->functions[i].total_exec_time / 1000.0f,
|
i, module_inst->e->functions[i].total_exec_time / 1000.0f,
|
||||||
module_inst->e->functions[i].total_exec_cnt);
|
module_inst->e->functions[i].total_exec_cnt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user