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:
Matt Mastracci 2024-02-28 09:12:43 -07:00 committed by GitHub
parent c2c4e745a5
commit a3f982c1d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 51 additions and 31 deletions

View file

@ -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");
}