Skip to content

Clarify commands usage in dotnet-dump analyze help #3148

Closed

Description

@richlander

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.

Activity

  1. added
    bug
    on Jun 28, 2022
  2. self-assigned this
    on Jun 28, 2022
  3. mikem8361 commented on Jun 28, 2022

    @mikem8361
    Contributor

    You can do this:

     dotnet-dump analyze symboltestapp.3.1.17.coredump -c "eeheap -gc" -c "exit" | grep "Number of GC Heaps"
    
  4. richlander commented on Jun 28, 2022

    @richlander
    MemberAuthor

    Nice!!!! Thanks much.

  5. danmoseley commented on Jun 28, 2022

    @danmoseley

    @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.

  6. richlander commented on Jun 28, 2022

    @richlander
    MemberAuthor

    I was confused by that, too.

  7. added
    documentation
    and removed
    bug
    on Jun 28, 2022
  8. changed the title [-]Enable run this command and exit for `dotnet-dump analyze`[/-] [+]Clarify commands usage in `dotnet-dump analyze` help[/+] on Jun 28, 2022
  9. mikem8361 commented on Jun 28, 2022

    @mikem8361
    Contributor

    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?

  10. hoyosjs commented on Jun 28, 2022

    @hoyosjs
    Member

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

  11. ghost closed this as completedin #3151on Jun 29, 2022
  12. ghost locked as resolved and limited conversation to collaborators on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationdotnet-dump

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions