From f2ac7ff23a2ae4925f4ca32ffd61c923c481ef4e Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sun, 10 Oct 2021 16:36:55 +0200 Subject: bench(deno_common): track void ops (#12389) To track overhead through the entire CLI opcall stack (metrics included, etc...) --- core/ops_builtin.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs index bb04cddf4..83f2e504a 100644 --- a/core/ops_builtin.rs +++ b/core/ops_builtin.rs @@ -3,6 +3,8 @@ use crate::error::AnyError; use crate::include_js_files; use crate::op_sync; use crate::resources::ResourceId; +use crate::void_op_async; +use crate::void_op_sync; use crate::Extension; use crate::OpState; use crate::Resource; @@ -30,6 +32,8 @@ pub(crate) fn init_builtins() -> Extension { "op_wasm_streaming_set_url", op_sync(op_wasm_streaming_set_url), ), + ("op_void_sync", void_op_sync()), + ("op_void_async", void_op_async()), ]) .build() } -- cgit v1.2.3