diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-10-10 16:36:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-10 16:36:55 +0200 |
commit | f2ac7ff23a2ae4925f4ca32ffd61c923c481ef4e (patch) | |
tree | 9d66aefc305594becd1e6c516131fd7a3c4a95f3 /core/ops_builtin.rs | |
parent | 5edd2771619ddc3cd2f6c76cc93ee64277aa17c2 (diff) |
bench(deno_common): track void ops (#12389)
To track overhead through the entire CLI opcall stack (metrics included, etc...)
Diffstat (limited to 'core/ops_builtin.rs')
-rw-r--r-- | core/ops_builtin.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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() } |