-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chore/integrate-traceevent' into feat/profiling-low-ove…
…rhead
- Loading branch information
Showing
29 changed files
with
1,463 additions
and
2,471 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
<Project InitialTargets="RestoreSubmodule"> | ||
<!-- If Ben.Demystifer is not found, restore git submodules --> | ||
<Target Name="RestoreSubmodule" | ||
Condition="!Exists('modules\Ben.Demystifier\Ben.Demystifier.sln')"> | ||
<Message Importance="High" Text="Ben.Demystifer not found. Restoring git submodules." /> | ||
<!-- Restore git submodules if needed--> | ||
<Target Name="RestoreSubmodule" Condition="!Exists('modules\Ben.Demystifier\Ben.Demystifier.sln') or !Exists('modules\perfview\PerfView.sln')"> | ||
<Message Importance="High" Text="Restoring git submodules." /> | ||
<Exec Command="git submodule update --init --recursive" /> | ||
</Target> | ||
</Project> |
93 changes: 46 additions & 47 deletions
93
...DotNet.Artifacts/results/Sentry.Benchmarks.ProfilingBenchmarks-report-github.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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,33 @@ | ||
Set-StrictMode -Version Latest | ||
$ErrorActionPreference = 'Stop' | ||
|
||
function UpdateSourceFiles([string]$Path) | ||
{ | ||
$files = Get-ChildItem -Recurse "$PSScriptRoot/perfview/$Path" -Filter '*.cs' | ||
foreach ($file in $files) | ||
{ | ||
$oldText = Get-Content $file.FullName -Raw | ||
$text = $oldText | ||
|
||
# Make types internal. | ||
$text = $text -replace 'public( +([a-z ]+)?(class|struct|enum|interface|delegate) +)', 'internal$1' | ||
$text = $text -creplace "(`n +)(class | struct | enum | interface) ", '$1internal $2 ' | ||
|
||
# Allow nullable types. | ||
$text = "#nullable disable`n`n" + ($text -replace "#nullable disable[`n`r]+", '') | ||
|
||
# Don't error out on obsolete code usage. | ||
$text = $text -replace '(?<!// )\[Obsolete\(.+\)\]', '// $0' | ||
$text = $text -replace '(?<!/* ), (Obsolete\(.+\))', '/* $0 */' | ||
|
||
# Only write in case we see a change to avoid unnecessary git changes due to Encoding differences. | ||
if ($oldText -ne $text) | ||
{ | ||
Set-Content $file.FullName $text -NoNewline | ||
} | ||
} | ||
} | ||
|
||
UpdateSourceFiles -Path 'src/TraceEvent' | ||
UpdateSourceFiles -Path 'src/FastSerialization' | ||
UpdateSourceFiles -Path 'src/Utilities' |
Oops, something went wrong.