Skip to content

Commit

Permalink
remove clock_time_get instrumentation (#4709)
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej authored May 17, 2024
2 parents 9281a01 + 73d7613 commit 58a98d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/wasix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ sys-default = [
"ctrlc"
]
sys-poll = []
extra-logging = []
sys-thread = ["tokio/rt", "tokio/time", "tokio/rt-multi-thread", "rusty_pool"]
journal = ["tokio/fs", "wasmer-journal/log-file"]

Expand Down
9 changes: 7 additions & 2 deletions lib/wasix/src/syscalls/wasi/clock_time_get.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use super::*;
use crate::syscalls::*;

// NOTE: This syscall is not instrumented since it will be logged too much,
// hence introducing too much noise to the logs.

/// ### `clock_time_get()`
/// Get the time of the specified clock
/// Inputs:
Expand All @@ -11,8 +14,10 @@ use crate::syscalls::*;
/// Output:
/// - `Timestamp *time`
/// The value of the clock in nanoseconds
//#[instrument(level = "trace", skip_all, fields(?clock_id, %precision), ret)]
#[instrument(level = "trace", skip_all, ret)]
#[cfg_attr(
feature = "extra-logging",
tracing::instrument(level = "trace", skip_all, ret)
)]
pub fn clock_time_get<M: MemorySize>(
mut ctx: FunctionEnvMut<'_, WasiEnv>,
clock_id: Snapshot0Clockid,
Expand Down

0 comments on commit 58a98d0

Please sign in to comment.