Implement performance profiler and call stack dump, and update toolchain document (#501)
And remove redundant FAST_INTERP macros in wasm_interp_fast.c, and fix wamrc --help wrong line order issue. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -28,6 +28,9 @@ add_definitions(-DWASM_ENABLE_SHARED_MEMORY=1)
|
||||
add_definitions(-DWASM_ENABLE_THREAD_MGR=1)
|
||||
add_definitions(-DWASM_ENABLE_TAIL_CALL=1)
|
||||
add_definitions(-DWASM_ENABLE_SIMD=1)
|
||||
add_definitions(-DWASM_ENABLE_CUSTOM_NAME_SECTION=1)
|
||||
add_definitions(-DWASM_ENABLE_DUMP_CALL_STACK=1)
|
||||
add_definitions(-DWASM_ENABLE_PERF_PROFILING=1)
|
||||
|
||||
# Set WAMR_BUILD_TARGET, currently values supported:
|
||||
# "X86_64", "AMD_64", "X86_32", "ARM_32", "MIPS_32", "XTENSA_32"
|
||||
|
||||
@ -41,9 +41,11 @@ print_help()
|
||||
printf(" llvmir-opt Optimized LLVM IR\n");
|
||||
printf(" --enable-bulk-memory Enable the post-MVP bulk memory feature\n");
|
||||
printf(" --enable-multi-thread Enable multi-thread feature, the dependent features bulk-memory and\n");
|
||||
printf(" --enable-tail-call Enable the post-MVP tail call feature\n");
|
||||
printf(" thread-mgr will be enabled automatically\n");
|
||||
printf(" --enable-tail-call Enable the post-MVP tail call feature\n");
|
||||
printf(" --enable-simd Enable the post-MVP 128-bit SIMD feature\n");
|
||||
printf(" --enable-dump-call-stack Enable stack trace feature\n");
|
||||
printf(" --enable-perf-profiling Enable function performance profiling\n");
|
||||
printf(" -v=n Set log verbose level (0 to 5, default is 2), larger with more log\n");
|
||||
printf("Examples: wamrc -o test.aot test.wasm\n");
|
||||
printf(" wamrc --target=i386 -o test.aot test.wasm\n");
|
||||
@ -155,6 +157,12 @@ main(int argc, char *argv[])
|
||||
else if (!strcmp(argv[0], "--enable-simd")) {
|
||||
option.enable_simd = true;
|
||||
}
|
||||
else if (!strcmp(argv[0], "--enable-dump-call-stack")) {
|
||||
option.enable_aux_stack_frame = true;
|
||||
}
|
||||
else if (!strcmp(argv[0], "--enable-perf-profiling")) {
|
||||
option.enable_aux_stack_frame = true;
|
||||
}
|
||||
else
|
||||
return print_help();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user