Skip to content
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

Clarify commands usage in dotnet-dump analyze help #3148

Closed
richlander opened this issue Jun 28, 2022 · 6 comments · Fixed by #3151
Closed

Clarify commands usage in dotnet-dump analyze help #3148

richlander opened this issue Jun 28, 2022 · 6 comments · Fixed by #3151
Assignees
Labels
documentation Documentation related issue dotnet-dump

Comments

@richlander
Copy link
Member

I want to do the following:

./dotnet-dump analyze dump.dmp -c "eeheap -gc" --exit | grep Number of GC Heaps

That doesn't appear possible. It would be very powerful.

@richlander richlander added the bug Something isn't working label Jun 28, 2022
@mikem8361 mikem8361 self-assigned this Jun 28, 2022
@mikem8361
Copy link
Member

You can do this:

 dotnet-dump analyze symboltestapp.3.1.17.coredump -c "eeheap -gc" -c "exit" | grep "Number of GC Heaps"

@richlander
Copy link
Member Author

Nice!!!! Thanks much.

@danmoseley
Copy link
Member

@mikem8361 could you clarify the -? help here then as neither of us figured this out?

It does say [default: System.String[]] but I didn't know what that meant.

Eg, something like

-c, --command <command> Run the command on start. Can be repeated to run a sequence of commands.

@richlander
Copy link
Member Author

I was confused by that, too.

@hoyosjs hoyosjs added documentation Documentation related issue dotnet-dump and removed bug Something isn't working labels Jun 28, 2022
@hoyosjs hoyosjs changed the title Enable run this command and exit for dotnet-dump analyze Clarify commands usage in dotnet-dump analyze help Jun 28, 2022
@hoyosjs hoyosjs reopened this Jun 28, 2022
@mikem8361
Copy link
Member

That is System.CommandLine's way of indicating that multiple -c comands can be parsed. It is very unclear but maybe it has gotten better in newer versions.

@jonsequitur, we are currently on version 2.0.0-beta1.20468.1 of System.CommandLine. Has this improved?

@hoyosjs
Copy link
Member

hoyosjs commented Jun 28, 2022

We can, at the very least, modify the help text.

@ghost ghost closed this as completed in #3151 Jun 29, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 26, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Documentation related issue dotnet-dump
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants