|
|
@@ -18,6 +18,9 @@
|
|
|
#if WASM_ENABLE_STRINGREF != 0
|
|
|
#include "string_object.h"
|
|
|
#endif
|
|
|
+#if WASM_ENABLE_GC_PERF_PROFILING != 0
|
|
|
+#include "../../shared/mem-alloc/mem_alloc.h"
|
|
|
+#endif
|
|
|
#endif
|
|
|
|
|
|
static void
|
|
|
@@ -250,6 +253,11 @@ wasm_application_execute_main(WASMModuleInstanceCommon *module_inst, int32 argc,
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+#if WASM_ENABLE_GC_PERF_PROFILING != 0
|
|
|
+ void *handle = wasm_runtime_get_gc_heap_handle(module_inst);
|
|
|
+ mem_allocator_dump_perf_profiling(handle);
|
|
|
+#endif
|
|
|
+
|
|
|
#if WASM_ENABLE_PERF_PROFILING != 0
|
|
|
wasm_runtime_dump_perf_profiling(module_inst);
|
|
|
#endif
|
|
|
@@ -816,6 +824,11 @@ wasm_application_execute_func(WASMModuleInstanceCommon *module_inst,
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+#if WASM_ENABLE_GC_PERF_PROFILING != 0
|
|
|
+ void *handle = wasm_runtime_get_gc_heap_handle(module_inst);
|
|
|
+ mem_allocator_dump_perf_profiling(handle);
|
|
|
+#endif
|
|
|
+
|
|
|
#if WASM_ENABLE_PERF_PROFILING != 0
|
|
|
wasm_runtime_dump_perf_profiling(module_inst);
|
|
|
#endif
|