mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
chore(cli): rename --trace-ops
to --trace-leaks
(#22598)
As we add tracing to more types of runtime activity, `--trace-ops` is less useful of a name. `--trace-leaks` better reflects that this feature traces both ops and timers, and will eventually trace resource opening as well. This keeps `--trace-ops` as an alias for `--trace-leaks`, but prints a warning to the console suggesting migration to `--trace-leaks`. One test continues to use `--trace-ops` to test the deprecation warning. --------- Signed-off-by: Matt Mastracci <matthew@mastracci.com>
This commit is contained in:
parent
c2c4e745a5
commit
a3f982c1d5
8 changed files with 51 additions and 31 deletions
|
@ -296,7 +296,7 @@ impl TestRun {
|
|||
test::TestSpecifierOptions {
|
||||
filter,
|
||||
shuffle: None,
|
||||
trace_ops: false,
|
||||
trace_leaks: false,
|
||||
},
|
||||
))
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ impl TestRun {
|
|||
.iter()
|
||||
.map(|s| s.as_str()),
|
||||
);
|
||||
args.push("--trace-ops");
|
||||
args.push("--trace-leaks");
|
||||
if self.workspace_settings.unstable && !args.contains(&"--unstable") {
|
||||
args.push("--unstable");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue