-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add profile flags to cli-flags crate #7568
base: main
Are you sure you want to change the base?
Add profile flags to cli-flags crate #7568
Conversation
Thanks! Given though that there's already a |
Thanks, Alex. Let me take a look at that. |
@rahulchaphalkar +1, this is a needed patch. Putting profiling under the debug option was even referenced in the CLI refactoring issue #6741 (comment). For this patch isn't what you want to do is move the --profile flag to under DebugOptions option_group here https://github.com/bytecodealliance/wasmtime/pull/7568/files#diff-c971b96993f492c9102c58afb35a6cb1ce72351e8c32ffe9ffed91c656dc8484R129-R130 @alexcrichton are you suggesting the former, or something different all together? |
Ah so to clarify I'd prefer to not change the CLI, meaning not adding new options or removing any options. So my suggestion is to support profiling via the |
This change adds profile options like
vtune
,jitdump
andperfmap
to cli-flags crate, so that they can be used bySightglass
and other benchmarks (via--engine-flags
for sightglass).This will enable wasm code visibility via profilers like vtune in sightglass, which was lacking.
I have added these flags to the
Debug
group of options - I can create a separateProfile
group if needed instead.