Skip to content

Commit f8160c4

Browse files
committed
xtask/profiler: Improved the userspace profiling by dynamically switching programs
This now works really nicely, just a few improvements to performance, but other than that, this is so good. Signed-off-by: Amjad Alsharafi <[email protected]>
1 parent 18980bb commit f8160c4

4 files changed

Lines changed: 329 additions & 69 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xtask/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ qapi = { version = "0.15", features = ["qapi-qmp", "qapi-qga"] }
1414
framehop = "0.14"
1515
elf = "0.8"
1616
rustc-demangle = "0.1"
17+
xxhash-rust = { version = "0.8", features = ["xxh3"] }
18+

xtask/src/args.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@ pub struct Profiler {
166166
#[argh(description = "collect a single stack trace and exit")]
167167
pub one_shot: bool,
168168

169-
#[argh(option, long = "user-program", short = 'u')]
170-
#[argh(description = "userspace program that you want to profile (not accurate for now...)")]
171-
pub user_program: Option<String>,
172-
173169
#[argh(option, long = "profile", short = 'p')]
174170
#[argh(
175171
description = "by default we will check for `--profile` runs, but if you want to profile `release` or `debug`, put it here"

0 commit comments

Comments
 (0)