diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-11-05 14:27:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 14:27:36 -0700 |
commit | 485fade0b6910e29557c6627d37985b47735bf8e (patch) | |
tree | 0f6c97c135c8a92226caecb363effe7eabf47936 /cli/worker.rs | |
parent | 4530cd5f0d5e6acdbbb11a60eac711d47f274d3f (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/worker.rs')
-rw-r--r-- | cli/worker.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 5022b39f1..173d944c0 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -86,6 +86,7 @@ pub struct CliMainWorkerOptions { pub argv: Vec<String>, pub log_level: WorkerLogLevel, pub coverage_dir: Option<String>, + pub enable_op_summary_metrics: bool, pub enable_testing_features: bool, pub has_node_modules_dir: bool, pub hmr: bool, @@ -546,6 +547,7 @@ impl CliMainWorkerFactory { .map(|p| p.get()) .unwrap_or(1), log_level: shared.options.log_level, + enable_op_summary_metrics: shared.options.enable_op_summary_metrics, enable_testing_features: shared.options.enable_testing_features, locale: deno_core::v8::icu::get_language_tag(), location: shared.options.location.clone(), @@ -732,6 +734,7 @@ fn create_web_worker_callback( .map(|p| p.get()) .unwrap_or(1), log_level: shared.options.log_level, + enable_op_summary_metrics: shared.options.enable_op_summary_metrics, enable_testing_features: shared.options.enable_testing_features, locale: deno_core::v8::icu::get_language_tag(), location: Some(args.main_module.clone()), |