-
Notifications
You must be signed in to change notification settings - Fork 387
[WIP] Generational aware analysis (diagnostics part) #1338
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
Closed
cshung
wants to merge
1
commit into
dotnet:master
from
cshung:public/dev/andrewau/generational-aware-diagnostics
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prototype
- Loading branch information
commit c265294f4aaff88329665b3823e48b600216ad9e
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| @if not defined _echo echo off | ||
| cls | ||
|
|
||
| dotnet.exe restore "%~dp0dotnet-dump.csproj" --packages "%~dp0..\..\..\artifacts\packages" || ( | ||
| echo [ERROR] Failed to restore. | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| for %%c in (Debug Release) do ( | ||
| dotnet.exe build "%~dp0dotnet-dump.csproj" -c %%c --no-restore || ( | ||
| echo [ERROR] Failed to build %%c. | ||
| exit /b 1 | ||
| ) | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| @if not defined _echo echo off | ||
|
|
||
| call :run_command dotnet.exe run -c Debug --no-restore --no-build -- %* | ||
| exit /b %ERRORLEVEL% | ||
|
|
||
| :run_command | ||
| echo/%USERNAME%@%COMPUTERNAME% "%CD%" | ||
| echo/[%DATE% %TIME%] $ %* | ||
| echo/ | ||
| call %* | ||
| exit /b %ERRORLEVEL% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| @if not defined _echo echo off | ||
| cls | ||
|
|
||
| dotnet.exe restore "%~dp0dotnet-gcdump.csproj" --packages "%~dp0..\..\..\artifacts\packages" || ( | ||
| echo [ERROR] Failed to restore. | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| for %%c in (Debug Release) do ( | ||
| dotnet.exe build "%~dp0dotnet-gcdump.csproj" -c %%c --no-restore || ( | ||
| echo [ERROR] Failed to build %%c. | ||
| exit /b 1 | ||
| ) | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| @if not defined _echo echo off | ||
|
|
||
| call :run_command dotnet.exe run -c Debug --no-restore --no-build -- %* | ||
| exit /b %ERRORLEVEL% | ||
|
|
||
| :run_command | ||
| echo/%USERNAME%@%COMPUTERNAME% "%CD%" | ||
| echo/[%DATE% %TIME%] $ %* | ||
| echo/ | ||
| call %* | ||
| exit /b %ERRORLEVEL% |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.