summaryrefslogtreecommitdiff
path: root/cli/args/mod.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-11-05 14:27:36 -0700
committerGitHub <noreply@github.com>2023-11-05 14:27:36 -0700
commit485fade0b6910e29557c6627d37985b47735bf8e (patch)
tree0f6c97c135c8a92226caecb363effe7eabf47936 /cli/args/mod.rs
parent4530cd5f0d5e6acdbbb11a60eac711d47f274d3f (diff)
chore: migrate to new deno_core and metrics (#21057)
- Uses the new OpMetrics system for sync and async calls - Partial revert of #21048 as we moved Array.fromAsync upstream to deno_core
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r--cli/args/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs
index fa8d94de5..4acbb1763 100644
--- a/cli/args/mod.rs
+++ b/cli/args/mod.rs
@@ -1137,6 +1137,14 @@ impl CliOptions {
}
}
+ pub fn enable_op_summary_metrics(&self) -> bool {
+ self.flags.enable_op_summary_metrics
+ || matches!(
+ self.flags.subcommand,
+ DenoSubcommand::Test(_) | DenoSubcommand::Repl(_)
+ )
+ }
+
pub fn enable_testing_features(&self) -> bool {
self.flags.enable_testing_features
}