Repository navigation
Require Windows 10 or Later and Remove 32-bit Support from PerfView #2475
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
Merged
Brian Robbins (brianrob)
merged 41 commits into
main
from
brianrob/windows-10-requirement
Oct 7, 2026
Merged
Changes from 35 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
b7bb77a
Remove legacy KernelTraceControl support
brianrob 6e2670b
Require Windows 10 for Windows hosts
brianrob e3e80c8
Build PerfView applications for x64
brianrob 1cd7351
Remove ARM32 PerfView paths
brianrob 77f6809
Trim host-only PerfView native resources
brianrob 03f4d88
Simplify x64 profiler registration
brianrob 234da82
Remove 32-bit host heap-dump branches
brianrob 5209d5f
Remove cross-bitness counter relaunch
brianrob 46bd81e
Remove 32-bit host command redirection
brianrob 383ceea
Remove the app-permissions OS gate
brianrob 10f9cda
Remove obsolete kernel-paging commands
brianrob 4a656a9
Remove the custom-session OS restriction
brianrob 73f7ef2
Remove the CPU-counter UI OS gate
brianrob b2d3157
Always log CPU-counter settings on stop
brianrob c2c2cf5
Remove legacy network-capture OS arguments
brianrob ef997a9
Remove the old-host trace warning
brianrob 462c8e4
Remove JavaScript heap OS gates
brianrob 9172741
Remove the package-lookup OS gate
brianrob fe89d10
Remove Win61 from TraceEvent packaging
brianrob 58ced5c
Remove Windows 7 real-time session emulation
brianrob 53e4059
Remove legacy ETW provider-control fallbacks
brianrob cca3daf
Remove the pre-Vista ETW consumer API
brianrob 142de68
Remove obsolete kernel-session version checks
brianrob f92b918
Remove profile-source OS gates
brianrob 51603c7
Remove the relogger OS gate
brianrob d98175d
Simplify the kernel keyword mask
brianrob 47835c7
Remove the merge-compression OS fallback
brianrob 0b6e8b2
Replace the obsolete ETL error explanation
brianrob 824801f
Retire pre-Windows 8.1 filtering fallbacks
brianrob fd17789
Remove dead version scaffolding
brianrob f0c982e
Retire Windows 7 tracing samples
brianrob 8a047e7
Update samples for Windows 10
brianrob 8547d43
Remove EventRegister's WinRT OS gate
brianrob 80d4756
Refresh supported-platform guidance
brianrob f834c39
Dispose the invalid-handle test fixture
brianrob 8bfcba7
Fix compiler typo in TraceEvent guide
brianrob 4120c13
Clarify ARM64 trace capture support
brianrob 3ee63ae
Link latest download in release information
brianrob 7be4dea
Clarify Windows package identity
brianrob 598c3db
Remove constant PerfView architecture helpers
brianrob 5ec234d
Centralize the host architecture directory
brianrob 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
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
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,50 @@ | ||
| using PerfView; | ||
| using System; | ||
| using System.Diagnostics; | ||
| using System.IO; | ||
| using System.Reflection; | ||
| using Xunit; | ||
|
|
||
| namespace PerfViewTests | ||
| { | ||
| public class HeapDumperTests | ||
| { | ||
| [Fact] | ||
| public void DetectsX64Target() | ||
| { | ||
| using (var process = Process.GetCurrentProcess()) | ||
| { | ||
| Assert.Equal(ProcessorArchitecture.Amd64, HeapDumper.GetArchForProcess(process.Id)); | ||
| } | ||
| } | ||
|
|
||
| [Fact] | ||
| public void DetectsX86TargetFromX64Host() | ||
| { | ||
| var startInfo = new ProcessStartInfo( | ||
| Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.SystemX86), "cmd.exe"), | ||
| "/d /c set /p PERFVIEW_TEST=") | ||
| { | ||
| UseShellExecute = false, | ||
| CreateNoWindow = true, | ||
| RedirectStandardInput = true | ||
| }; | ||
| using (var process = Process.Start(startInfo)) | ||
| { | ||
| try | ||
| { | ||
| Assert.Equal(ProcessorArchitecture.X86, HeapDumper.GetArchForProcess(process.Id)); | ||
| } | ||
| finally | ||
| { | ||
| process.StandardInput.Close(); | ||
| if (!process.WaitForExit(5000)) | ||
| { | ||
| process.Kill(); | ||
| process.WaitForExit(); | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
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,68 @@ | ||
| using PerfView; | ||
| using System; | ||
| using System.ComponentModel; | ||
| using Xunit; | ||
|
|
||
| namespace PerfViewTests | ||
| { | ||
| public class StartupTests | ||
| { | ||
| [Fact] | ||
| public void ApplicationAndTestHostAreX64() | ||
| { | ||
| Assert.Equal(8, IntPtr.Size); | ||
| Assert.Equal(System.Reflection.ProcessorArchitecture.Amd64, typeof(Startup).Assembly.GetName().ProcessorArchitecture); | ||
| } | ||
|
|
||
| [Fact] | ||
| public void HostResourcesUseX64AndKeepBothHelpers() | ||
| { | ||
| Assert.Equal("amd64", global::Utilities.SupportFiles.ProcessArchitectureDirectory); | ||
| var resources = typeof(Startup).Assembly.GetManifestResourceNames(); | ||
| Assert.Contains(@".\runtimes\win-x64\native\WebView2Loader.dll", resources); | ||
| Assert.DoesNotContain(@".\runtimes\win-x86\native\WebView2Loader.dll", resources); | ||
| Assert.DoesNotContain(@".\runtimes\win-arm64\native\WebView2Loader.dll", resources); | ||
| Assert.Contains(@".\amd64\msdia140.dll", resources); | ||
| Assert.DoesNotContain(@".\x86\msdia140.dll", resources); | ||
| Assert.DoesNotContain(resources, name => name.StartsWith(@".\arm\", StringComparison.Ordinal)); | ||
| foreach (var arch in new[] { "x86", "amd64" }) | ||
| { | ||
| foreach (var file in new[] { "HeapDump.exe", "EtwClrProfiler.dll", "KernelTraceControl.dll" }) | ||
| { | ||
| Assert.Contains(@".\" + arch + @"\" + file, resources); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| [Fact] | ||
| public void UnsupportedWindowsReportsOnceWithoutStarting() | ||
| { | ||
| int reports = 0; | ||
| int result = Startup.Run(() => false, message => | ||
| { | ||
| reports++; | ||
| Assert.Contains("Windows 10", message); | ||
| }, () => throw new InvalidOperationException("Application must not start.")); | ||
|
|
||
| Assert.Equal(1, result); | ||
| Assert.Equal(1, reports); | ||
| } | ||
|
|
||
| [Fact] | ||
| public void SupportedWindowsReturnsApplicationStatus() | ||
| { | ||
| Assert.Equal(42, Startup.Run(() => true, | ||
| message => throw new InvalidOperationException(message), () => 42)); | ||
| } | ||
|
|
||
| [Fact] | ||
| public void VersionQueryFailureReportsWithoutStarting() | ||
| { | ||
| string reported = null; | ||
| int result = Startup.Run(() => throw new Win32Exception("Version query failed."), | ||
| message => reported = message, () => throw new InvalidOperationException("Application must not start.")); | ||
| Assert.Equal(1, result); | ||
| Assert.Equal("Version query failed.", reported); | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.