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

dotnet-dump analyze output to file #2808

Closed
crnegule opened this issue Jan 11, 2022 · 4 comments
Closed

dotnet-dump analyze output to file #2808

crnegule opened this issue Jan 11, 2022 · 4 comments
Assignees
Labels
dotnet-dump enhancement New feature or request
Milestone

Comments

@crnegule
Copy link

Due to the way we interact with dotnet-dump analyze it would great to have a feature were we could output the results of a command to a file on the disk.
This feature would be similar to Out-File command from Microsoft.PowerShell.Core or similar to STDERR/STDOUT from C++ Redirecting from Command Prompt.
Would be willing to work on this if i get a recommendation where in the project this should be implemented.

@crnegule crnegule added the enhancement New feature or request label Jan 11, 2022
@mikem8361 mikem8361 self-assigned this Jan 12, 2022
@tommcdon tommcdon added this to the .NET 7.0 milestone Jan 12, 2022
@gfoidl
Copy link
Member

gfoidl commented Jan 14, 2022

You could redirect the output, e.g.

dotnet-dump analyze foo.dmp -c "eeheap -gc" > eeheap-gc.txt

Should work as #2169 is fixed.

@crnegule
Copy link
Author

The feature i am referring to is inside the interactive dotnet-dump analyze instance. When we do the dump analysis to have the option to output the content without calling a new instance of dotnet-dump.

@michaelstum
Copy link

WinDBG had logopen/logappend which was VERY useful and pretty much a rule of thumb for me to always start every WinDBG session with a log open to capture everything. Running dotnet-dump -c works, but is a bit tedious if I still want an interactive shell to try out several things - I'd have to redirect to the output with the >> append redirect, open the logfile in some tail application to see the log output, then change the command line for every file. I guess I could build a frontend for that, but I'd really love to see dotnet-dump get native logopen/logappend/logclose functionality.

@mikem8361
Copy link
Member

dup of #3095

@ghost ghost locked as resolved and limited conversation to collaborators Jun 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dotnet-dump enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants