Skip to content

Commit 17d77f5

Browse files
committed
[V8] Add time measurement for executing machine code.
1 parent db4fb46 commit 17d77f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/V8Platform.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,9 @@ void V8Platform::execute(const Operator &plan)
798798

799799
/* Invoke the exported function `main` of the module. */
800800
args_t args { v8::Int32::New(isolate_, wasm_context.id), };
801-
const uint32_t num_rows = main->Call(context, context->Global(), 1, args).ToLocalChecked().As<v8::Uint32>()->Value();
801+
const uint32_t num_rows =
802+
M_TIME_EXPR(main->Call(context, context->Global(), 1, args).ToLocalChecked().As<v8::Uint32>()->Value(),
803+
"Execute machine code", C.timer());
802804

803805
/* Print total number of result tuples. */
804806
if (auto print_op = cast<const PrintOperator>(&plan)) {

0 commit comments

Comments
 (0)