Skip to content

Conversation

@cshung
Copy link
Contributor

@cshung cshung commented Jul 10, 2020

This is the diagnostics part of the generational aware analysis.
The runtime part can be found here.

Process process = Process.GetProcessById(processId);
var client = new DiagnosticsClient(processId);

Windows.CollectDump(process, output, type);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with this change is that now dotnet-dump collect on Windows won't work with older runtimes (<= 2.2) and it did before. May be it isn't that important because dotnet-dump collect on xplat only works runtimes > 2.2 and your change is needed to provide the condition on Windows.

dotnet-dump could catch that the client.WriteDump fails on the unsupported Windows runtimes, but the exception is inconsistent/difficult than xplat. I think it is something like TimeoutException on Windows and PlatformNotSupportedException on xplat.

/cc: @josalem on the client assembly exception difference.

@cshung cshung force-pushed the public/dev/andrewau/generational-aware-diagnostics branch from b4757db to c265294 Compare July 27, 2020 18:03
@cshung cshung closed this Aug 4, 2020
@cshung cshung deleted the public/dev/andrewau/generational-aware-diagnostics branch August 29, 2020 00:33
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants